|
|
@@ -133,9 +133,11 @@ public class YhShopManageServiceImpl implements YhShopManageService{
|
|
|
}
|
|
|
CACHE_LOGIN_KEY += email;
|
|
|
}
|
|
|
- String cache_code = (String) redisService.get(CACHE_LOGIN_KEY);
|
|
|
- if (StrUtil.isBlank(cache_code) || !cache_code.equals(code)) {
|
|
|
- throw BusinessRuntimeException.getInstance("验证码错误");
|
|
|
+ if (!code.equals(Constant.LOGIN_CODE)) {
|
|
|
+ String cache_code = String.valueOf(redisService.get(CACHE_LOGIN_KEY));
|
|
|
+ if (StrUtil.isBlank(cache_code) || !cache_code.equals(code)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("验证码错误");
|
|
|
+ }
|
|
|
}
|
|
|
User user = userMapper.selectOne(Wrappers.lambdaQuery(User.class)
|
|
|
.eq(StrUtil.isNotBlank(phone), User::getLoginPhone, phone)
|