This commit is contained in:
hero920103 committed 2026-10-19 01:13:17 +08:00
1 parent 5718a00e31
commit 1850ac640e
226 files changed
+37772 -12071

No files matched your search

+3 -1
View File
@@ -9,6 +9,7 @@ import (
"time"
"server/models"
"server/pkg/identity"
"server/pkg/jwtutil"
"server/services"
approvalEngine "server/services/approval"
@@ -71,7 +72,8 @@ func oaApprovalIDParam(c *AppOaController) uint64 {
func oaApprovalClaims(c *AppOaController) (*jwtutil.Claims, bool) {
claims, err := c.oaClaims()
if err != nil {
c.oaErr(401, 401, "未登录或无权限")
code := identity.Status(err)
c.oaErr(code, code, err.Error())
return nil, false
}
return claims, true