소스 검색

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 { //检测外部服务登录状态是否过期