Commit ec6529e4 by zt

优化代码

parent af50b376
...@@ -180,6 +180,7 @@ public class SoundMonitorService { ...@@ -180,6 +180,7 @@ public class SoundMonitorService {
}else { }else {
//判断是否超过了一小时 //判断是否超过了一小时
long emailSecond = (currentTime.getTime()-emailSendTime.getTime())/1000; long emailSecond = (currentTime.getTime()-emailSendTime.getTime())/1000;
log.info("邮件距上次发送已经过了{}秒",emailSecond);
if (emailSecond/3600 > 1){ if (emailSecond/3600 > 1){
return true; return true;
}else { }else {
...@@ -195,7 +196,7 @@ public class SoundMonitorService { ...@@ -195,7 +196,7 @@ public class SoundMonitorService {
}else { }else {
//判断是否超过了一小时 //判断是否超过了一小时
long second = (currentTime.getTime() - smsSendTime.getTime())/1000; long second = (currentTime.getTime() - smsSendTime.getTime())/1000;
log.info("{}",second); log.info("短信距上次发送已经过了{}秒",second);
if (second/3600 > 1){ if (second/3600 > 1){
return true; return true;
}else { }else {
......
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