Commit ec6529e4 by zt

优化代码

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