fix(系统设置): 优化邮箱邀请注册时出现重复邮箱的提示信息

--bug=1042095 --user=宋天阳 【系统】邮箱邀请已存在用户的提示优化 https://www.tapd.cn/55049933/s/1530588
This commit is contained in:
Jianguo-Genius 2024-06-18 14:52:55 +08:00 committed by 刘瑞斌
parent 9ad0ae268b
commit 50cec0aef2
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ public class SimpleUserService {
//校验邮箱和角色的合法性
Map<String, String> errorMap = this.validateUserInfo(request.getInviteEmails());
if (MapUtils.isNotEmpty(errorMap)) {
throw new MSException(Translator.get("user.email.repeat"));
throw new MSException(Translator.get("user.email.repeat") + " : " + StringUtils.join(errorMap.keySet(), ", "));
}
List<UserInvite> inviteList = userInviteService.batchInsert(request.getInviteEmails(), inviteUser.getId(), request.getUserRoleIds());
//记录日志