This commit is contained in:
邹宗楠
2022-05-18 19:13:23 +08:00
parent c70dc70e22
commit 0dd21dba79

View File

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