wangchuanjin hai 1 ano
pai
achega
62a400eb12
Modificáronse 1 ficheiros con 4 adicións e 3 borrados
  1. 4 3
      core/proxy/broker/outServer/SussBi.go

+ 4 - 3
core/proxy/broker/outServer/SussBi.go

@@ -174,9 +174,10 @@ func (s *sussBi) CheckLoginOut(r *ghttp.Request) bool {
 func (s *sussBi) Filter(r *ghttp.Request) error {
 	ctx := router.GetGContext(r.GetCtx())
 	http.SetCookie(r.Response.ResponseWriter, &http.Cookie{
-		Name:  "BITOKEN",
-		Value: common.GetMd5String(fmt.Sprintf("%s_%s_%d_%d_%d_%d_%d_%d_%s_%d_%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.EntDeptId, ctx.Sess.EntUserName, ctx.Sess.EntUserId)),
-		Path:  "/",
+		Name:   "BITOKEN",
+		Value:  common.GetMd5String(fmt.Sprintf("%s_%s_%d_%d_%d_%d_%d_%d_%s_%d_%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.EntDeptId, ctx.Sess.EntUserName, ctx.Sess.EntUserId)),
+		Path:   "/",
+		Domain: ".jydev.jianyu360.com",
 	})
 	if ctx.Sess.NewUid != 0 {
 		replaceMap := map[string]interface{}{