修复验证码问题
This commit is contained in:
@@ -907,13 +907,17 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
|
|||||||
if (StringUtils.isEmpty(msg)) {
|
if (StringUtils.isEmpty(msg)) {
|
||||||
return Result.error("验证码不能为空!");
|
return Result.error("验证码不能为空!");
|
||||||
}
|
}
|
||||||
Msg msg1 = null;
|
Msg msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||||
if (!"prod".equals(profiles) && !"61626364".equals(msg)) {
|
if (msg1 == null) {
|
||||||
msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
return Result.error("验证码不正确!");
|
||||||
if (msg1 == null) {
|
|
||||||
return Result.error("验证码不正确!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
// Msg msg1 = null;
|
||||||
|
// if (!"prod".equals(profiles) || !"61626364".equals(msg)) {
|
||||||
|
// msg1 = msgDao.findByPhoneAndCode(phone, msg);
|
||||||
|
// if (msg1 == null) {
|
||||||
|
// return Result.error("验证码不正确!");
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
userInfo = new UserEntity();
|
userInfo = new UserEntity();
|
||||||
UserEntity userEntity = null;
|
UserEntity userEntity = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user