Roc 4 일 전
부모
커밋
636bd81580
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      controllers/base_auth.go

+ 4 - 1
controllers/base_auth.go

@@ -629,7 +629,10 @@ func checkToken(c *BaseAuthController) (isOk bool, session *system.SysSession, r
 	var token string
 
 	// 单点登录逻辑
-	aiUser := c.Ctx.GetCookie("ai_user")
+	aiUser := c.Ctx.GetCookie("user_name")
+	if aiUser == `` {
+		aiUser = c.Ctx.GetCookie("ai_user")
+	}
 	if aiUser == `` {
 		aiUser = c.Ctx.GetCookie("ai_token")
 	}