|
@@ -55,6 +55,10 @@ public class SmsCodeServiceImpl implements SmsCodeService {
|
|
|
@Override
|
|
|
public boolean sendValidCode(String mobile, String type, ClientEnum platform) {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserByMobile(mobile);
|
|
|
+ // 修改手机号 有用户了不许修改
|
|
|
+ if ("PHONE".equals(type) && sysUser != null) {
|
|
|
+ throw new BizException("手机号已经注册过账号");
|
|
|
+ }
|
|
|
Long userId = null;
|
|
|
if (sysUser != null) {
|
|
|
userId = sysUser.getId();
|