记得上下班打卡 | git大法好,push需谨慎

Commit a937e2dd authored by 张国柄's avatar 张国柄

Merge branch 'dev' into test

parents 40ec7ed9 2b9a5c9b
...@@ -101,6 +101,8 @@ public class AdamDMAdminController { ...@@ -101,6 +101,8 @@ public class AdamDMAdminController {
private boolean verify(int alis) { private boolean verify(int alis) {
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
int hour = now.getHour(); int hour = now.getHour();
return alis == Integer.parseInt((hour > 12 ? hour - 12 : hour) + "" + now.getMinute()); int ali = Integer.parseInt((hour > 12 ? hour - 12 : hour) + "" + now.getMinute());
log.info("ali:{},alis:{}", ali, alis);
return alis == ali;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment