This commit is contained in:
邹宗楠
2022-06-02 10:52:08 +08:00
parent 2fc12ba443
commit 2e8df3d6dd
2 changed files with 5 additions and 1 deletions

View File

@@ -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)

View File

@@ -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))
}
}