|
|
|
@ -23,6 +23,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
import java.util.Optional;
|
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
|
|
|
|
@ -67,7 +68,7 @@ public class CommonController {
|
|
|
|
|
return new Result<>(401, "账号或者密码错误", "");
|
|
|
|
|
}
|
|
|
|
|
User user = optionalUser.get();
|
|
|
|
|
if(userLoginByAccountDTO.getMark() != user.getMark()) {
|
|
|
|
|
if(!Objects.equals(userLoginByAccountDTO.getMark(), user.getMark())) {
|
|
|
|
|
return new Result<>(401, "请选择正确身份", "");
|
|
|
|
|
}
|
|
|
|
|
if (user.getDisabled() == 1) {
|
|
|
|
|