Commit 10e09e08 by zt

优化代码

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