This commit is contained in:
邹宗楠
2023-10-11 15:13:38 +08:00
parent 72f0b2358a
commit 0d5c284c21
5 changed files with 29 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ package misc
import (
"fmt"
"git.rosy.net.cn/jx-callback/business/jxcallback/auto_delivery"
"sync"
"time"
@@ -216,10 +217,10 @@ func Init() {
}, 10*time.Second, 5*time.Minute)
// (自动发单拣货,设置骑手) 刷单用
//ScheduleTimerFuncByInterval(func() {
// auto_delivery.Init() // 初始化骑手列表
// auto_delivery.AutoSettingFakeDelivery()
//}, 10*time.Second, 5*time.Minute)
ScheduleTimerFuncByInterval(func() {
auto_delivery.Init() // 初始化骑手列表
auto_delivery.AutoSettingFakeDelivery()
}, 10*time.Second, 5*time.Minute)
// 定时任务更新负责人信息
ScheduleTimerFunc("RefreshStoreOperator", func() {