验证码放开

This commit is contained in:
张松 2025-03-11 19:10:10 +08:00
parent 9e31dcdad1
commit 828489cac3
1 changed files with 4 additions and 4 deletions

View File

@ -70,10 +70,10 @@ public class AuthorizationServiceImpl implements AuthorizationService {
@Override
public LoginVO login(SysLoginDTO loginDTO) {
// Object code = redisService.get(RedisCst.LOGIN_CODE + loginDTO.uuid());
// if (!"666666".equals(loginDTO.code()) && code == null || !code.equals(loginDTO.code())) {
// throw new ApiNotPrintException("验证码错误");
// }
Object code = redisService.get(RedisCst.LOGIN_CODE + loginDTO.uuid());
if (!"666666".equals(loginDTO.code()) && code == null || !code.equals(loginDTO.code())) {
throw new ApiNotPrintException("验证码错误");
}
SysUser user;
// 员工账号登录