From b78012d82b8ec3a4007b17d9217a27bf47f155dc Mon Sep 17 00:00:00 2001 From: gazebo Date: Thu, 21 Nov 2019 17:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AF=8F=E9=9A=9410=E5=A4=A9=E8=A6=81=E5=BC=BA?= =?UTF-8?q?=E5=88=B7=E9=97=A8=E5=BA=97=E5=95=86=E5=93=81=E5=8F=AF=E5=94=AE?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/misc/misc.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 13c01ba38..d5ecebe95 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -146,7 +146,10 @@ func doDailyWork() { cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true) netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true) // cms.CurVendorSync.FullSyncStoresSkus(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDJD}, nil, false, true, true) - syncFlag := model.SyncFlagPriceMask // | model.SyncFlagSaleMask + syncFlag := model.SyncFlagPriceMask + if (time.Now().Unix()/24*3600)%10 == 0 { + syncFlag |= model.SyncFlagSaleMask + } cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDJD}, nil, false, nil, []int{27379}, syncFlag, true, true) SaveImportantTaskID(TaskNameSyncStoreSku, SpecialTaskID)