收音机不校验禁用状态
This commit is contained in:
@@ -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("账户未启用");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user