收音机不校验禁用状态

This commit is contained in:
张松
2025-04-02 15:23:37 +08:00
parent 7d9cfb74f4
commit 99e7cbe1de
3 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ public class AuthorizationServiceImpl implements AuthorizationService {
}
@Override
public LoginVO login(SysLoginDTO loginDTO) {
public LoginVO login(SysLoginDTO loginDTO, String platType) {
Object code = redisService.get(RedisCst.LOGIN_CODE + loginDTO.uuid());
if (!"666666".equals(loginDTO.code()) && (code == null || !code.equals(loginDTO.code().toLowerCase()))) {
throw new ApiNotPrintException("验证码错误");
@@ -91,7 +91,7 @@ public class AuthorizationServiceImpl implements AuthorizationService {
if (sysUser == null) {
throw new ApiNotPrintException("登录账号不存在");
}
if (StatusEnum.DISABLE.value() == sysUser.getStatus()) {
if ("WEB".equals(platType) && StatusEnum.DISABLE.value() == sysUser.getStatus()) {
throw new ApiNotPrintException("账户未启用");
}