Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
task3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
首航-临时账号
task3.0
Commits
ec6529e4
Commit
ec6529e4
authored
Sep 25, 2019
by
zt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化代码
parent
af50b376
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
SoundMonitorService.java
src/main/java/com/foc/service/SoundMonitorService.java
+2
-1
No files found.
src/main/java/com/foc/service/SoundMonitorService.java
View file @
ec6529e4
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment