Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
golang-queue-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c0ecbc68
authored
Aug 12, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整通知
parent
213544c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
user/company/main.go
user/company/main.go
View file @
c0ecbc68
...
...
@@ -51,7 +51,7 @@ func main() {
//初始化db
initDb
(
util
.
Configs
.
Liexin_databases
.
Dns
)
//t1 := time.NewTimer(time.Second *
3
)
//t1 := time.NewTimer(time.Second *
10
)
t1
:=
time
.
NewTimer
(
time
.
Hour
*
12
)
// 定时12小时
for
{
...
...
@@ -59,7 +59,7 @@ func main() {
case
<-
t1
.
C
:
fmt
.
Println
(
"ticker..."
)
updateData
()
//t1.Reset(time.Second *
3
)
//t1.Reset(time.Second *
10
)
t1
.
Reset
(
time
.
Hour
*
12
)
}
}
...
...
@@ -122,7 +122,11 @@ func updateData() (err error) {
return
err
}
ding
.
Send
(
util
.
Configs
.
Ding_msg
.
FkCompany
,
"任务告警"
,
"获取风控公司信息成功,公司名称:"
+
company
.
ComName
,
mobile
,
isAtAll
)
// 已评分的推送钉钉通知
if
total_credit_score
>
0
{
ding
.
Send
(
util
.
Configs
.
Ding_msg
.
FkCompany
,
"任务告警"
,
"获取风控公司信息成功,公司名称:"
+
company
.
ComName
,
mobile
,
isAtAll
)
}
}
return
...
...
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