This commit is contained in:
2025-10-27 15:24:08 +08:00
parent 4186cd0caf
commit df4c3dd46f
47 changed files with 1757 additions and 306 deletions

View File

@@ -167,7 +167,7 @@ func (a *Auth) validateUser(ctx context.Context, email, password string) (*syste
user.Role, err = a.roleService.Get(ctx, user.RoleID)
if err != nil {
return nil, err
return nil, errors.New("账号没有配置角色, 请联系管理员")
}
if user.Role == nil || user.Role.ID == 0 {