From 8c77593d3a4a41de2fb9ce3016ecc65a98b55da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 28 May 2024 14:39:18 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 01080ec1f..1ba6ef0fa 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -273,11 +273,13 @@ func Init() { orderman.UpdateJdsOrdersStatus(jxcontext.AdminCtx, time.Now().AddDate(0, 0, -1), time.Now()) }, 5*time.Second, 5*time.Minute) - ScheduleTimerFuncByInterval(func() { - curDate := utils.Time2Date(time.Now()) - orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, curDate, curDate, true, true) - }, 5*time.Second, 5*time.Minute) - + if beego.BConfig.RunMode == "jxgy" { + ScheduleTimerFuncByInterval(func() { + fromData := utils.Time2Date(time.Now()) + toData := time.Now() + orderman.FixedOrderManager.AmendMissingOrders(jxcontext.AdminCtx, []int{model.VendorIDJD, model.VendorIDMTWM, model.VendorIDEBAI, model.VendorIDDD}, 0, fromData, toData, true, true) + }, 5*time.Second, 5*time.Minute) + } // 抖音更新门店商品 ,接口收费暂不使用 //if beego.BConfig.RunMode != "jxgy" { // ScheduleTimerFunc("RefreshSyncSkuList", func() {