|
@@ -22,12 +22,6 @@ func Task() {
|
|
|
getArticleListByApi := task.NewTask("getArticleListByApi", "0 */5 * * * *", GetArticleListByApi)
|
|
|
task.AddTask("getArticleListByApi", getArticleListByApi)
|
|
|
|
|
|
-
|
|
|
- sendActivityBeginMsg := task.NewTask("sendActivityBeginMsg", "0 */10 6-23 * * *", SendActivityBeginMsg)
|
|
|
- task.AddTask("sendActivityBeginMsg", sendActivityBeginMsg)
|
|
|
- sendActivityBeginMsgMeeting := task.NewTask("sendActivityBeginMsgMeeting", "0 */5 6-23 * * *", SendActivityBeginMsgMeeting)
|
|
|
- task.AddTask("sendActivityBeginMsgMeeting", sendActivityBeginMsgMeeting)
|
|
|
-
|
|
|
|
|
|
sendEmailFileToExpert := task.NewTask("sendEmailFileToExpert", "0 */5 6-23 * * *", SendEmailFileToExpert)
|
|
|
task.AddTask("sendEmailFileToExpert", sendEmailFileToExpert)
|
|
@@ -43,6 +37,12 @@ func Task() {
|
|
|
}
|
|
|
|
|
|
if utils.IsTask {
|
|
|
+
|
|
|
+ sendActivityBeginMsg := task.NewTask("sendActivityBeginMsg", "0 */10 6-23 * * *", SendActivityBeginMsg)
|
|
|
+ task.AddTask("sendActivityBeginMsg", sendActivityBeginMsg)
|
|
|
+ sendActivityBeginMsgMeeting := task.NewTask("sendActivityBeginMsgMeeting", "0 */5 6-23 * * *", SendActivityBeginMsgMeeting)
|
|
|
+ task.AddTask("sendActivityBeginMsgMeeting", sendActivityBeginMsgMeeting)
|
|
|
+
|
|
|
getYiDongActivity := task.NewTask("getYiDongActivity", "0 */10 * * * *", GetYiDongActivity)
|
|
|
task.AddTask("getYiDongActivity", getYiDongActivity)
|
|
|
|