1
This commit is contained in:
@@ -280,13 +280,6 @@ func Init() {
|
||||
orderman.UpdateJdsOrdersStatus(jxcontext.AdminCtx, time.Now().AddDate(0, 0, -1), time.Now())
|
||||
}, 5*time.Second, 5*time.Minute)
|
||||
|
||||
if beego.BConfig.RunMode == model.ServerTypeFruits /*|| beego.BConfig.RunMode == model.ServerTypePet*/ {
|
||||
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() {
|
||||
@@ -456,6 +449,14 @@ func Init() {
|
||||
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true)
|
||||
}, dailyWorkTimeList)
|
||||
//}
|
||||
if beego.BConfig.RunMode == model.ServerTypeFruits /*|| beego.BConfig.RunMode == model.ServerTypePet*/ {
|
||||
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)
|
||||
}
|
||||
|
||||
ScheduleTimerFunc("doDailyWork5", func() {
|
||||
//刷新物料订单状态
|
||||
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
|
||||
|
||||
Reference in New Issue
Block a user