Commit 6dcbc305 by Joneq

去除循环使用

parent 93a90881
Showing with 1 additions and 4 deletions
......@@ -58,7 +58,7 @@ func main() {
svc.Close() //关闭数据库连接
logic.LogWrite("统计"+dao.Model_dong[mod]+"完成",dao.Model_dong_log[mod],1)
}else{
for {
logic.LogWrite("统计所有动态任务开始","_dong_main",1)
svc := service.New()
for k,_ := range model_dong{
......@@ -78,9 +78,6 @@ func main() {
svc.Close() //关闭数据库连接
time.Sleep(60*time.Second)
}
fmt.Println("\r\n所有任务已经完成")
}
}
......
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