jimmyyem 2 months ago
parent
commit
8e2aa9cbd4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      internal/logic/User/do_gpts_user_login_logic.go

+ 2 - 2
internal/logic/User/do_gpts_user_login_logic.go

@@ -43,11 +43,11 @@ func (l *DoGptsUserLoginLogic) DoGptsUserLogin(req *types.GptsUserLoginReq) (res
 	}
 
 	if user.Status != nil && *user.Status != uint32(utils.StatusNormal) {
-		return nil, errorx.NewCodeInvalidArgumentError("login.userBanned")
+		return nil, errorx.NewCodeInvalidArgumentError("用户被锁定")
 	}
 
 	if !utils.BcryptCheck(*req.Password, *user.Password) {
-		return nil, errorx.NewCodeInvalidArgumentError("login.wrongUsernameOrPassword")
+		return nil, errorx.NewCodeInvalidArgumentError("用户名或密码错误")
 	}
 
 	valid := utils.CheckGptLogin(user.RoleIds)