|
|
@@ -260,6 +260,9 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
|
String oldPhoneVerification = "verification_" + phone;
|
|
|
//获取新手机号验证码
|
|
|
String redisVerificationCode = baseRedisService.getString(oldPhoneVerification);
|
|
|
+ if(StringUtils.isEmpty(redisVerificationCode)){
|
|
|
+ throw new RuntimeException("验证码已失效 请重新获取验证码");
|
|
|
+ }
|
|
|
if (redisVerificationCode.equals(verificationCode)) {
|
|
|
changePhoneMap.put("verificationStatus", "1");
|
|
|
return changePhoneMap;
|
|
|
@@ -285,8 +288,8 @@ public class StoreUserServiceImpl extends ServiceImpl<StoreUserMapper, StoreUser
|
|
|
wrapperFans.eq(StoreUser::getPassword, password);
|
|
|
StoreUser storeUserPw = this.getOne(wrapperFans);
|
|
|
if (storeUserPw == null || storeUserPw.getPassword().equals("")) {
|
|
|
- log.info("密码输入错误 请重新输入");
|
|
|
- throw new RuntimeException("密码输入错误 请重新输入");
|
|
|
+ log.info("原密码错误");
|
|
|
+ throw new RuntimeException("原密码错误");
|
|
|
}
|
|
|
}
|
|
|
}
|