增加uniapp

This commit is contained in:
2026-07-15 09:08:52 +08:00
parent 4aa9204df7
commit a5d129cfa0
24 changed files with 2136 additions and 1 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ func (c *BackendAuthController) GetCurrentUser() {
c.serveJSON(map[string]interface{}{"code": 401, "msg": "无效的token"})
return
}
if claims.UserType != "backend" {
if claims.UserType != "backend" && claims.UserType != "app" {
c.serveJSON(map[string]interface{}{"code": 403, "msg": "无权访问"})
return
}