xingzai 6 сар өмнө
parent
commit
487e414a2c

+ 2 - 1
services/ficc_report.go

@@ -2,6 +2,7 @@ package services
 
 //FICC研报
 import (
+	"context"
 	"errors"
 	"fmt"
 	"hongze/hongze_cygx/models"
@@ -431,7 +432,7 @@ func GetChapterListByReportChapterIdList(classifyNameFirst string, reportId int,
 //}
 
 // 获取FICC研报到查研观向数据库中
-func GetFiccRreportToCygxArticle() (err error) {
+func GetFiccRreportToCygxArticle(cont context.Context) (err error) {
 	defer func() {
 		if err != nil {
 			fmt.Println(err)

+ 2 - 0
services/task.go

@@ -161,6 +161,8 @@ func Task() {
 		getYanxuanSpecialLikeCountDifferent := task.NewTask("getYanxuanSpecialLikeCountDifferent", "0 0 */1 * * *", GetYanxuanSpecialLikeCountDifferent)
 		task.AddTask("定时任务处理退款回调", getYanxuanSpecialLikeCountDifferent) // 专栏文章获得点赞时,模板消息通知作者(每个整点发送,不同文章分多条发送)
 
+		getFiccRreportToCygxArticle := task.NewTask("getFiccRreportToCygxArticle", "0 */10 * * * *", GetFiccRreportToCygxArticle)
+		task.AddTask("获取FICC研报到查研观向数据库中", getFiccRreportToCygxArticle) //获取FICC研报到查研观向数据库中
 	}
 
 	//UpdateRaiServeBillDate()