抓取网页门店数据的任务,在beta上每天04:05:06执行

This commit is contained in:
gazebo
2019-09-30 11:01:27 +08:00
parent 2897200c89
commit 919f9e303e

View File

@@ -111,7 +111,11 @@ func Init() {
}, autoSaleStoreSkuTimeList) }, autoSaleStoreSkuTimeList)
if beego.BConfig.RunMode == "beta" { if beego.BConfig.RunMode == "beta" {
netspider.GetAndStoreCitiesShops(jxcontext.AdminCtx, nil, nil, 0, 0, false, true) ScheduleTimerFunc("GetAndStoreCitiesShops", func() {
netspider.GetAndStoreCitiesShops(jxcontext.AdminCtx, nil, nil, 0, 0, false, false)
}, []string{
"04:05:06",
})
} }
} }