李伟乐 1 year ago
parent 1d1300f432
commit 5f3c32e7e8
  1. 2
      middleware/jwt/default.go

@ -54,5 +54,5 @@ func (j *JwtDefault) Validate(ctx context.Context, permission string, permission
return nil return nil
} }
} }
return errors.Unauthorized("TOKEN_PERMISSION_BAD", "") return errors.BadRequest("TOKEN_PERMISSION_BAD", "")
} }

Loading…
Cancel
Save