傅行帆 5 lat temu
rodzic
commit
84e48d7625

+ 1
- 7
src/main/java/com/huiju/estateagents/center/taUser/controller/TaUserController.java Wyświetl plik

28
 import org.springframework.web.bind.annotation.*;
28
 import org.springframework.web.bind.annotation.*;
29
 
29
 
30
 import javax.servlet.http.HttpServletRequest;
30
 import javax.servlet.http.HttpServletRequest;
31
-import java.time.LocalDateTime;
32
 import java.util.ArrayList;
31
 import java.util.ArrayList;
33
 import java.util.HashMap;
32
 import java.util.HashMap;
34
 import java.util.List;
33
 import java.util.List;
336
         if (taUser == null) {
335
         if (taUser == null) {
337
             return ResponseBean.error("用户名或密码错误", ResponseBean.ERROR_ILLEGAL_PARAMS);
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
         if (!taUser.getStatus().equals(CommConstant.STATUS_NORMAL) ) {
339
         if (!taUser.getStatus().equals(CommConstant.STATUS_NORMAL) ) {
346
             return ResponseBean.error("该账号已经停用,请联系管理员", ResponseBean.ERROR_UNAVAILABLE);
340
             return ResponseBean.error("该账号已经停用,请联系管理员", ResponseBean.ERROR_UNAVAILABLE);
347
         }
341
         }