1
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user