Browse Source

只在正式环境下通知

xyxie 7 months ago
parent
commit
dd3feccdfd
1 changed files with 4 additions and 4 deletions
  1. 4 4
      services/task.go

+ 4 - 4
services/task.go

@@ -199,10 +199,6 @@ func Task() {
 	fixCompanyOverseasStatus := task.NewTask("fixCompanyOverseasStatus", "0 */5 * * * *", overseas_custom.FixCompanyOverseasStatus)
 	task.AddTask("同步客户状态", fixCompanyOverseasStatus)
 
-	//问答社区定时发送模版消息给研究员
-	notifyNeedAnswerQuestionToResearch := task.NewTask("notifyNeedAnswerQuestionToResearch", "0 0 10 * * *", NotifyNeedAnswerQuestionToResearch)
-	task.AddTask("问答社区定时发送模版消息给研究员", notifyNeedAnswerQuestionToResearch)
-
 	task.StartTask()
 
 	fmt.Println("task end")
@@ -291,6 +287,10 @@ func releaseTask() {
 	// 同步进门财经白名单定时任务
 	syncWhiteList := task.NewTask("syncWhiteList", "0 */10 * * * *", comein.SyncWhiteList)
 	task.AddTask("syncWhiteList", syncWhiteList)
+
+	//问答社区定时发送模版消息给研究员
+	notifyNeedAnswerQuestionToResearch := task.NewTask("notifyNeedAnswerQuestionToResearch", "0 0 10 * * *", NotifyNeedAnswerQuestionToResearch)
+	task.AddTask("问答社区定时发送模版消息给研究员", notifyNeedAnswerQuestionToResearch)
 }
 
 //func TaskTest() {