添加鉴权方式

This commit is contained in:
lzh 2025-06-14 15:42:52 +08:00
parent ed8844be34
commit 625ed25b67

View File

@ -82,6 +82,9 @@ func CheckWebLogin(provider *account.AccountClientImpl) gin.HandlerFunc {
startTime := time.Now()
//如果没有登录
authorization := ctx.GetHeader(e.Authorization)
if authorization == "" {
authorization = ctx.Query("token")
}
if authorization == "" {
service.NotLoginRes(ctx, logic.ConvertLoginMsg(ctx, e.ErrNotLogin))
return