Răsfoiți Sursa

研究汇总时间恢复

ziwen 1 an în urmă
părinte
comite
1786b9fa26
2 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  1. 2 2
      services/cygx_research_summary.go
  2. 1 1
      services/task.go

+ 2 - 2
services/cygx_research_summary.go

@@ -26,8 +26,8 @@ func CygxResearchSummary(cont context.Context) (err error) {
 	month := int(friday.Month())
 	lastDay := lastfriday.Day()
 	day := friday.Day()
-	friday, _ = time.Parse(utils.FormatDateTime, "2023-09-29 15:00:00")
-	lastfriday, _ = time.Parse(utils.FormatDateTime, "2023-09-22 15:00:00")
+	//friday, _ = time.Parse(utils.FormatDateTime, "2023-09-29 15:00:00")
+	//lastfriday, _ = time.Parse(utils.FormatDateTime, "2023-09-22 15:00:00")
 
 	itemCrs := new(data_manage.CygxResearchSummary)
 	itemCrs.AdminId = 11

+ 1 - 1
services/task.go

@@ -154,7 +154,7 @@ func Task() {
 	//task.AddTask("定时发布英文研报", publishEnglishReport)
 
 	// 定时生成本周研究汇总
-	cygxResearchSummary := task.NewTask("cygxResearchSummary", "0 45 13 * * *", CygxResearchSummary)
+	cygxResearchSummary := task.NewTask("cygxResearchSummary", "0 0 15 * * 5", CygxResearchSummary)
 	task.AddTask("定时生成本周研究汇总", cygxResearchSummary)
 
 	// 定时生成上周纪要汇总