jimmyyem 2 달 전
부모
커밋
8e2aa9cbd4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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)