From 2e8df3d6dd7d0a043f6f7afdb487352f84c3c426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 2 Jun 2022 10:52:08 +0800 Subject: [PATCH] 1 --- business/jxstore/misc/misc.go | 3 +++ business/partner/purchase/mtwm/mtwm_test.go | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 978a60414..a77e6fbec 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -184,6 +184,9 @@ func Init() { }, []string{ "16:00:00", "16:10:00", }) + ScheduleTimerFuncByInterval(func() { + cms.UpdateStoreOperatorConfig() + }, 10*time.Second, 5*time.Minute) ScheduleTimerFuncByInterval(func() { defsch.FixedScheduler.ConfirmSelfTakeOrders(jxcontext.AdminCtx, []int{model.VendorIDJD}, time.Now().Add(-48*time.Hour), time.Now().Add(-30*time.Minute), true, true) diff --git a/business/partner/purchase/mtwm/mtwm_test.go b/business/partner/purchase/mtwm/mtwm_test.go index a79484357..bfb73cdfa 100644 --- a/business/partner/purchase/mtwm/mtwm_test.go +++ b/business/partner/purchase/mtwm/mtwm_test.go @@ -22,6 +22,7 @@ func init() { testinit.Init() } +// 获取平台分类属性(三级分类标签) func TestGetVendorCategories(t *testing.T) { result, err := new(PurchaseHandler).GetVendorCategories(jxcontext.AdminCtx) if err != nil { @@ -41,7 +42,7 @@ func TestGetVendorCategories(t *testing.T) { Level: v.Level, ParentID: v.ParentID, } - if err := dao.CreateEntity(dao.GetDB(),&data);err != nil { + if err := dao.CreateEntity(dao.GetDB(), &data); err != nil { t.Log(utils.Format4Output(err, false)) } }