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