|
|
@@ -147,12 +147,14 @@ public class StorePlatformLoginController {
|
|
|
businessType = "modify_phone";
|
|
|
break;
|
|
|
}
|
|
|
- String cacheCode = baseRedisService.getString("verification_store_platform_" + businessType + "_" + phone);
|
|
|
- if (null == cacheCode) {
|
|
|
- return R.fail("当验证码过期或未发送");
|
|
|
- }
|
|
|
- if (!cacheCode.trim().equals(verificationCode.trim())) {
|
|
|
- return R.fail("验证码错误");
|
|
|
+ if (0 != type) {
|
|
|
+ String cacheCode = baseRedisService.getString("verification_store_platform_" + businessType + "_" + phone);
|
|
|
+ if (null == cacheCode) {
|
|
|
+ return R.fail("当验证码过期或未发送");
|
|
|
+ }
|
|
|
+ if (!cacheCode.trim().equals(verificationCode.trim())) {
|
|
|
+ return R.fail("验证码错误");
|
|
|
+ }
|
|
|
}
|
|
|
return storePlatformLoginService.forgetOrModifyPassword(phone, newPhone, oldPassword, newPassword, confirmNewPassword, verificationCode, type);
|
|
|
}
|