|
@@ -28,7 +28,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
28
|
28
|
import org.springframework.web.bind.annotation.*;
|
29
|
29
|
|
30
|
30
|
import javax.servlet.http.HttpServletRequest;
|
31
|
|
-import java.time.LocalDateTime;
|
32
|
31
|
import java.util.ArrayList;
|
33
|
32
|
import java.util.HashMap;
|
34
|
33
|
import java.util.List;
|
|
@@ -336,12 +335,7 @@ public class TaUserController extends BaseController {
|
336
|
335
|
if (taUser == null) {
|
337
|
336
|
return ResponseBean.error("用户名或密码错误", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
338
|
337
|
}
|
339
|
|
-
|
340
|
|
- //校验是否过期且是否停用
|
341
|
|
- if (LocalDateTime.now().isAfter(taUser.getExpDate())){
|
342
|
|
- return ResponseBean.error("当前后台服务已到期,请联系相关管理人员", ResponseBean.ERROR_ILLEGAL_PARAMS);
|
343
|
|
- }
|
344
|
|
-
|
|
338
|
+
|
345
|
339
|
if (!taUser.getStatus().equals(CommConstant.STATUS_NORMAL) ) {
|
346
|
340
|
return ResponseBean.error("该账号已经停用,请联系管理员", ResponseBean.ERROR_UNAVAILABLE);
|
347
|
341
|
}
|