소스 검색

feat:增加path

wangchuanjin 1 년 전
부모
커밋
312f8dd6f1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      core/proxy/broker/outServer/SussBi.go

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

@@ -176,6 +176,7 @@ func (s *sussBi) Filter(r *ghttp.Request) error {
 	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:  "/",
 	})
 	if ctx.Sess.NewUid != 0 {
 		replaceMap := map[string]interface{}{