2
0

fix: 国际化

This commit is contained in:
caiyuchao
2025-01-23 16:15:21 +08:00
parent c4422375c9
commit 7837eabd56
2 changed files with 18 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
package org.wfc.user.controller;
import cn.hutool.core.util.StrUtil;
import org.apache.commons.lang3.ArrayUtils;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
@@ -22,8 +23,6 @@ import org.wfc.common.core.utils.poi.ExcelUtil;
import org.wfc.common.core.web.controller.BaseController;
import org.wfc.common.core.web.domain.AjaxResult;
import org.wfc.common.core.web.page.TableDataInfo;
import org.wfc.common.log.annotation.Log;
import org.wfc.common.log.enums.BusinessType;
import org.wfc.common.security.annotation.InnerAuth;
import org.wfc.common.security.annotation.RequiresPermissions;
import org.wfc.common.security.service.TokenService;
@@ -190,9 +189,9 @@ public class UUserController extends BaseController
return R.fail("user.register.save.error");
}
if (!userService.checkPhoneUnique(uUser))
if (StrUtil.isNotBlank(uUser.getPhonenumber()) && !userService.checkPhoneUnique(uUser))
{
return R.fail("user.register.phone.save.error " + username);
return R.fail("user.register.phone.save.error");
}
if (!userService.checkEmailUnique(uUser))