Commit c0ecbc68 by 朱继来

调整通知

parent 213544c6
Showing with 7 additions and 3 deletions
...@@ -51,7 +51,7 @@ func main() { ...@@ -51,7 +51,7 @@ func main() {
//初始化db //初始化db
initDb(util.Configs.Liexin_databases.Dns) 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小时 t1 := time.NewTimer(time.Hour * 12) // 定时12小时
for { for {
...@@ -59,7 +59,7 @@ func main() { ...@@ -59,7 +59,7 @@ func main() {
case <-t1.C: case <-t1.C:
fmt.Println("ticker...") fmt.Println("ticker...")
updateData() updateData()
//t1.Reset(time.Second * 3) //t1.Reset(time.Second * 10)
t1.Reset(time.Hour * 12) t1.Reset(time.Hour * 12)
} }
} }
...@@ -122,7 +122,11 @@ func updateData() (err error) { ...@@ -122,7 +122,11 @@ func updateData() (err error) {
return err 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 return
......
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 sign in to comment