修复验证码问题

This commit is contained in:
GYJ
2025-01-01 19:42:07 +08:00
parent dcaf258e9a
commit ab24effd0f

View File

@@ -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;