mirror of
				https://gitee.com/chuangxxt/share-copilot
				synced 2025-11-04 01:29:49 +00:00 
			
		
		
		
	Compare commits
	
		
			No commits in common. "952a31f63b94025ce21f3d847ff1919d9a58842a" and "67a8e7631a5d7a834f485cc66ab7239713a30b0a" have entirely different histories.
		
	
	
		
			952a31f63b
			...
			67a8e7631a
		
	
		
							
								
								
									
										11
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								README.md
									
									
									
									
									
								
							@ -16,8 +16,7 @@
 | 
				
			|||||||
- 优化请求逻辑,降低suspended概率(别万人骑基本不会)
 | 
					- 优化请求逻辑,降低suspended概率(别万人骑基本不会)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```sh
 | 
					```sh
 | 
				
			||||||
简单说一下
 | 
					简单说一下本地插件原本的请求逻辑:
 | 
				
			||||||
本地插件的请求逻辑:
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
1.本地插件携ghu_token请求github的API
 | 
					1.本地插件携ghu_token请求github的API
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -26,9 +25,7 @@
 | 
				
			|||||||
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
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -36,9 +33,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
 | 
					至于本地co_token,也就是代码提示没有走代理(可以代理,但是要修改插件,jetbrains的插件还要重新build)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
猜测风控目前也只是停留在请求ghu_token这一层
 | 
					猜测风控目前也是停留在请求ghu_token这一层
 | 
				
			||||||
 | 
					 | 
				
			||||||
"cocopilot也是代理了ghu_token请求,并没有破解插件"
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -9,10 +9,6 @@ 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