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