|
@@ -132,12 +132,10 @@ public class CmsUserMirrorShopServiceImpl implements CmsUserMirrorShopService {
|
|
|
if (StrUtil.isEmpty(phone)) {
|
|
if (StrUtil.isEmpty(phone)) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的手机号");
|
|
throw BusinessRuntimeException.getInstance("请输入正确的手机号");
|
|
|
}
|
|
}
|
|
|
- CACHE_LOGIN_KEY += phone;
|
|
|
|
|
} else if (type == 2) {
|
|
} else if (type == 2) {
|
|
|
if (!Validator.isEmail(email)) {
|
|
if (!Validator.isEmail(email)) {
|
|
|
throw BusinessRuntimeException.getInstance("请输入正确的邮箱");
|
|
throw BusinessRuntimeException.getInstance("请输入正确的邮箱");
|
|
|
}
|
|
}
|
|
|
- CACHE_LOGIN_KEY += email;
|
|
|
|
|
}
|
|
}
|
|
|
String cache_code = String.valueOf(redisService.get(CACHE_LOGIN_KEY));
|
|
String cache_code = String.valueOf(redisService.get(CACHE_LOGIN_KEY));
|
|
|
if (StrUtil.isBlank(cache_code) || !cache_code.equals(code)) {
|
|
if (StrUtil.isBlank(cache_code) || !cache_code.equals(code)) {
|