This commit is contained in:
邹宗楠
2022-05-30 14:31:29 +08:00
parent e18d367b47
commit 65017f39b4
4 changed files with 75 additions and 1 deletions

View File

@@ -178,6 +178,13 @@ func Init() {
delivery.GetOrderRiderInfoToPlatform("")
}, 10*time.Second, 5*time.Minute)
// 定时任务更新负责人信息
ScheduleTimerFunc("RefreshStoreOperator", func() {
cms.UpdateStoreOperatorConfig()
}, []string{
"03:30:00",
})
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)