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

Commit 2b9a5c9b authored by 张国柄's avatar 张国柄

DM;

parent 603d8ddb
...@@ -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