浏览代码

feat:调试

wangchuanjin 1 年之前
父节点
当前提交
36aacf1de2
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      core/proxy/proxyServer.go

+ 5 - 0
core/proxy/proxyServer.go

@@ -114,6 +114,11 @@ var proxyHandler = func(r *ghttp.Request) {
 			log.WithContext(r.Context()).Error("ErrorHandler ", err)
 		}
 		// 代理请求
+		if r.Request.RequestURI == "/succbi/crm_system/app/crm.app/sales_clues.spg" {
+			for _, v := range r.Request.Cookies() {
+				log.Println("代理cookie", fmt.Sprintf("%+v", v))
+			}
+		}
 		proxyClient.CreateCustomProxyClient(proxyAddr, errHandel, changeFunc).ServeHTTP(r.Response.ResponseWriter, r.Request)
 
 		if gCtx.RouterRule.IsOutServer { //检测外部服务登录状态是否过期