Roc 4 days ago
parent
commit
636bd81580
1 changed files with 4 additions and 1 deletions
  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")
 	}