修复验证码问题

This commit is contained in:
GYJ 2025-01-01 19:42:07 +08:00
parent dcaf258e9a
commit ab24effd0f
1 changed files with 10 additions and 6 deletions

View File

@ -907,13 +907,17 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
if (StringUtils.isEmpty(msg)) {
return Result.error("验证码不能为空!");
}
Msg msg1 = null;
if (!"prod".equals(profiles) && !"61626364".equals(msg)) {
msg1 = msgDao.findByPhoneAndCode(phone, msg);
if (msg1 == null) {
return Result.error("验证码不正确!");
}
Msg msg1 = msgDao.findByPhoneAndCode(phone, msg);
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();
UserEntity userEntity = null;