1
This commit is contained in:
@@ -173,6 +173,13 @@ func Init() {
|
||||
report.RefreshStoreManageState(jxcontext.AdminCtx, nil, []int{model.VendorIDJD})
|
||||
}, 5*time.Second, 1*time.Hour)
|
||||
|
||||
// 每五分钟轮询一次推送骑手信息坐标给美团
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
delivery.GetOrderRiderInfoToPlatform("")
|
||||
globals.SugarLogger.Debug("五分钟跑一次", time.Now())
|
||||
}, 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)
|
||||
}, 5*time.Second, 10*time.Minute)
|
||||
@@ -341,12 +348,6 @@ func Init() {
|
||||
//刷新饿百平台活动
|
||||
act.RrefreshEbaiVendorAct(jxcontext.AdminCtx)
|
||||
}, dailyWorkTimeList2)
|
||||
// 每五分钟轮询一次推送骑手信息坐标给美团
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
delivery.GetOrderRiderInfoToPlatform("")
|
||||
globals.SugarLogger.Debug("五分钟跑一次", time.Now())
|
||||
}, 10*time.Second, 5*time.Minute)
|
||||
|
||||
// 轮询每天更新当前时间一个月
|
||||
ScheduleTimerFunc("UpdateOrder2Complete", func() {
|
||||
delivery.UpdateOrder2Complete()
|
||||
|
||||
Reference in New Issue
Block a user