Bladeren bron

feat:修改

wangchuanjin 1 jaar geleden
bovenliggende
commit
62a400eb12
1 gewijzigde bestanden met toevoegingen van 4 en 3 verwijderingen
  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{}{