mirror of
https://gitee.com/chuangxxt/share-copilot
synced 2025-04-19 15:43:25 +00:00
Compare commits
3 Commits
67a8e7631a
...
952a31f63b
Author | SHA1 | Date | |
---|---|---|---|
|
952a31f63b | ||
|
89069492c7 | ||
|
d9fef498b9 |
11
README.md
11
README.md
@ -16,7 +16,8 @@
|
|||||||
- 优化请求逻辑,降低suspended概率(别万人骑基本不会)
|
- 优化请求逻辑,降低suspended概率(别万人骑基本不会)
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
简单说一下本地插件原本的请求逻辑:
|
简单说一下
|
||||||
|
本地插件的请求逻辑:
|
||||||
|
|
||||||
1.本地插件携ghu_token请求github的API
|
1.本地插件携ghu_token请求github的API
|
||||||
|
|
||||||
@ -25,7 +26,9 @@
|
|||||||
3.co_token到期->ghu_token重新请求->获得新的co_token
|
3.co_token到期->ghu_token重新请求->获得新的co_token
|
||||||
-------------------------------------------------------------
|
-------------------------------------------------------------
|
||||||
|
|
||||||
代理服务器代理的是 ghu_token请求 这一环节:
|
代理服务器的逻辑:
|
||||||
|
|
||||||
|
代理的是"ghu_token请求"这一环节
|
||||||
|
|
||||||
1.携ghu_token请求github的API,暂存co_token
|
1.携ghu_token请求github的API,暂存co_token
|
||||||
|
|
||||||
@ -33,7 +36,9 @@
|
|||||||
|
|
||||||
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
|
||||||
|
|
||||||
猜测风控目前也是停留在请求ghu_token这一层
|
猜测风控目前也只是停留在请求ghu_token这一层
|
||||||
|
|
||||||
|
"cocopilot也是代理了ghu_token请求,并没有破解插件"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -9,6 +9,10 @@ import (
|
|||||||
|
|
||||||
// 控制台显示信息
|
// 控制台显示信息
|
||||||
func showMsg() {
|
func showMsg() {
|
||||||
|
fmt.Println(color.WhiteString("-----------------------------------------------------------------------"))
|
||||||
|
fmt.Println(color.HiBlueString(" _ _ _ _ \n ___| |__ __ _ _ __ ___ ___ ___ _ __ (_) | ___ | |_ \n/ __| '_ \\ / _` | '__/ _ \\_____ / __/ _ \\| '_ \\| | |/ _ \\| __|\n\\__ \\ | | | (_| | | | __/_____| (_| (_) | |_) | | | (_) | |_ \n|___/_| |_|\\__,_|_| \\___| \\___\\___/| .__/|_|_|\\___/ \\__|\n |_| \n"))
|
||||||
|
fmt.Println(color.WhiteString("[Source Code]") + "https://gitee.com/chuangxxt/share-copilot")
|
||||||
|
fmt.Println(color.WhiteString("-----------------------------------------------------------------------"))
|
||||||
var url = ""
|
var url = ""
|
||||||
if configFile.Server.Port == 80 {
|
if configFile.Server.Port == 80 {
|
||||||
url = "http://" + configFile.Server.Domain
|
url = "http://" + configFile.Server.Domain
|
||||||
|
Loading…
Reference in New Issue
Block a user