This commit is contained in:
邹宗楠
2023-09-12 18:24:53 +08:00
parent 297e348bb6
commit 65b704f9c8
2 changed files with 5 additions and 5 deletions

View File

@@ -7,7 +7,6 @@ import (
"git.rosy.net.cn/baseapi/platformapi/dingdingapi" "git.rosy.net.cn/baseapi/platformapi/dingdingapi"
"git.rosy.net.cn/jx-callback/business/bidding" "git.rosy.net.cn/jx-callback/business/bidding"
"git.rosy.net.cn/jx-callback/business/jxcallback/auto_delivery"
"git.rosy.net.cn/jx-callback/business/jxutils/ddmsg" "git.rosy.net.cn/jx-callback/business/jxutils/ddmsg"
"git.rosy.net.cn/jx-callback/business/partner/delivery" "git.rosy.net.cn/jx-callback/business/partner/delivery"
@@ -221,10 +220,10 @@ func Init() {
}, 10*time.Second, 5*time.Minute) }, 10*time.Second, 5*time.Minute)
// (自动发单拣货,设置骑手) 刷单用 // (自动发单拣货,设置骑手) 刷单用
ScheduleTimerFuncByInterval(func() { //ScheduleTimerFuncByInterval(func() {
auto_delivery.Init() // 初始化骑手列表 // auto_delivery.Init() // 初始化骑手列表
auto_delivery.AutoSettingFakeDelivery() // auto_delivery.AutoSettingFakeDelivery()
}, 10*time.Second, 5*time.Minute) //}, 10*time.Second, 5*time.Minute)
// 定时任务更新负责人信息 // 定时任务更新负责人信息
ScheduleTimerFunc("RefreshStoreOperator", func() { ScheduleTimerFunc("RefreshStoreOperator", func() {

View File

@@ -413,6 +413,7 @@ func UpdateFakeWayBillToTiktok() {
} }
for i := 0; i < len(fakeWayBill); i++ { for i := 0; i < len(fakeWayBill); i++ {
globals.SugarLogger.Debugf("定时任务推送UpdateFakeWayBillToTiktok := %s", fakeWayBill[i].VendorOrderID)
// 判断当前订单是否可以推送,UpdatedAt > 当前时间 就跳过 // 判断当前订单是否可以推送,UpdatedAt > 当前时间 就跳过
if fakeWayBill[i].StatusTime.After(time.Now()) { if fakeWayBill[i].StatusTime.After(time.Now()) {
continue continue