Compare commits

..

No commits in common. "952a31f63b94025ce21f3d847ff1919d9a58842a" and "67a8e7631a5d7a834f485cc66ab7239713a30b0a" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -16,8 +16,7 @@
- 优化请求逻辑降低suspended概率别万人骑基本不会
```sh
简单说一下
本地插件的请求逻辑:
简单说一下本地插件原本的请求逻辑:
1.本地插件携ghu_token请求github的API
@ -26,9 +25,7 @@
3.co_token到期->ghu_token重新请求->获得新的co_token
-------------------------------------------------------------
代理服务器的逻辑:
代理的是"ghu_token请求"这一环节
代理服务器代理的是 ghu_token请求 这一环节:
1.携ghu_token请求github的API暂存co_token
@ -36,9 +33,7 @@
至于本地co_token也就是代码提示没有走代理可以代理但是要修改插件jetbrains的插件还要重新build
猜测风控目前也只是停留在请求ghu_token这一层
"cocopilot也是代理了ghu_token请求并没有破解插件"
猜测风控目前也是停留在请求ghu_token这一层
```

View File

@ -9,10 +9,6 @@ import (
// 控制台显示信息
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 = ""
if configFile.Server.Port == 80 {
url = "http://" + configFile.Server.Domain