style: 修改报错信息中文样式

This commit is contained in:
橙子
2023-10-04 23:16:07 +08:00
parent fcb0ea9574
commit c1c0774572
11 changed files with 25 additions and 25 deletions

View File

@@ -85,11 +85,11 @@ namespace Yi.Furion.Application.Rbac.Services.Impl
{
if (string.IsNullOrEmpty(input.Password))
{
throw new UserFriendlyException(UserConst._密码为空);
throw new UserFriendlyException(UserConst.Login_Passworld_Error);
}
if (await _repository.IsAnyAsync(u => input.UserName.Equals(u.UserName)))
{
throw new UserFriendlyException(UserConst._用户存在);
throw new UserFriendlyException(UserConst.User_Exist);
}
var entities = await MapToEntityAsync(input);