wangchuanjin 1 жил өмнө
parent
commit
31bafe6220

+ 1 - 1
core/proxy/broker/outServer/SussBi.go

@@ -175,7 +175,7 @@ func (s *sussBi) CheckLoginOut(r *ghttp.Request) bool {
 
 func (s *sussBi) Filter(r *ghttp.Request) error {
 	ctx := router.GetGContext(r.GetCtx())
-	r.AddCookie(&http.Cookie{
+	http.SetCookie(r.Response.ResponseWriter, &http.Cookie{
 		Name:  "BITOKEN",
 		Value: common.GetMd5String(fmt.Sprintf("%s_%s_%d_%d_%d_%d_%d_%d_%s_%s_%d", ctx.Sess.NickName, ctx.Sess.YyName, ctx.Sess.EntRole, ctx.Sess.EntNicheDis, ctx.Sess.PositionId, ctx.Sess.AccountId, ctx.Sess.EntAccountId, ctx.Sess.EntId, ctx.Sess.EntName, ctx.Sess.EntUserName, ctx.Sess.EntUserId)),
 	})