From a644f1084c2314912a97951be349061e02517e85 Mon Sep 17 00:00:00 2001 From: helongjun Date: Thu, 26 May 2022 13:33:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA=E8=AF=AD?= =?UTF-8?q?=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Inspection/InspectionService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs index f63e7d548..276a12882 100644 --- a/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs +++ b/IRaCIS.Core.Application/Service/Inspection/InspectionService.cs @@ -185,11 +185,11 @@ namespace IRaCIS.Core.Application.Service.Inspection var user = await _repository.FirstOrDefaultAsync(u => u.UserName == signDTO.UserName && u.Password == signDTO.PassWord); if (user == null) { - throw new BusinessValidationFailedException("password error"); + throw new BusinessValidationFailedException("用户名或密码错误"); } else if (user.Status == UserStateEnum.Disable) { - throw new BusinessValidationFailedException("The user has been disabled!"); + throw new BusinessValidationFailedException("当前用户已被禁用。"); } return ResponseOutput.Ok();