From 919f9e303e40bbb8f1851beadd680ecb065807e4 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 30 Sep 2019 11:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=93=E5=8F=96=E7=BD=91=E9=A1=B5=E9=97=A8?= =?UTF-8?q?=E5=BA=97=E6=95=B0=E6=8D=AE=E7=9A=84=E4=BB=BB=E5=8A=A1=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8beta=E4=B8=8A=E6=AF=8F=E5=A4=A904:05:06=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/misc.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 8703031a1..8ab5afdfd 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -111,7 +111,11 @@ func Init() { }, autoSaleStoreSkuTimeList) 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", + }) } }