Commit 7443c1d1 authored by xiaoguang.xu's avatar xiaoguang.xu

修改手机号,给客服的文案,提示友好一些.

parent a8a38abe
......@@ -230,12 +230,12 @@ public class UserServiceImpl implements IUserService {
User newPhoneUser = userRepository.findByPhoneNo(newPhoneNo);
if (Objects.nonNull(newPhoneUser)) {
//新手机号已存在
throw new DataException("信息填写有误,请重新填写。");
throw new DataException("新手机号存在, 用户修改手机号后新手机号注册了。");
}
User oldPhoneUser = userRepository.findByPhoneNo(oldPhoneNo);
if (Objects.isNull(oldPhoneUser)) {
//这不是扯了.旧手机号不存在.
throw new DataException("信息填写有误,请重新填写。");
throw new DataException("旧手机号不存在, 可能已经修改成功了。");
}
//2. 执行修改
//2.1 修改 user 表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment