|
@@ -2,6 +2,7 @@ package services
|
|
|
|
|
|
import (
|
|
|
"context"
|
|
|
+ "eta/eta_crawler/services/liangyou"
|
|
|
"eta/eta_crawler/services/sci99"
|
|
|
"eta/eta_crawler/utils"
|
|
|
"fmt"
|
|
@@ -34,8 +35,6 @@ func Task() {
|
|
|
|
|
|
crawlerIcpi := task.NewTask("refreshData", "0 0,30 16-23 * * *", CrawlerIcpi) //居民消费价格指数
|
|
|
|
|
|
- //lyData := task.NewTask("refreshData", "0 0,30 16-23 * * *", liangyou.LyDataDeal) //todo 粮油商务网 时间上线定
|
|
|
-
|
|
|
// 统计局-分月季年爬
|
|
|
//refreshNationalMonthA := task.NewTask("RefreshNationalMonthDbA", "0 15 2 10 * *", national_data.RefreshNationalMonthDbA)
|
|
|
//refreshNationalMonthB := task.NewTask("RefreshNationalMonthDbB", "0 15 2 16 * *", national_data.RefreshNationalMonthDbB)
|
|
@@ -53,7 +52,13 @@ func Task() {
|
|
|
task.AddTask("UN月度数据", syncYearMonthComTrade) //每月1号的3点同步
|
|
|
|
|
|
task.AddTask("居民消费价格指数", crawlerIcpi) //每月1号的3点同步
|
|
|
- //task.AddTask("粮油商务网", lyData)
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if utils.LY_OPEN == "1" {
|
|
|
+ lyData := task.NewTask("refreshData", "0 0 12 * * *", liangyou.LyDataDeal) // 粮油商务网
|
|
|
+
|
|
|
+ task.AddTask("粮油商务网", lyData)
|
|
|
}
|
|
|
|
|
|
if utils.BusinessCode == utils.BusinessCodeFuBang {
|