1
This commit is contained in:
@@ -181,7 +181,7 @@ func Init() {
|
|||||||
// 每五分钟轮询一次推送骑手信息坐标给美团
|
// 每五分钟轮询一次推送骑手信息坐标给美团
|
||||||
ScheduleTimerFuncByInterval(func() {
|
ScheduleTimerFuncByInterval(func() {
|
||||||
delivery.GetOrderRiderInfoToPlatform("", 0)
|
delivery.GetOrderRiderInfoToPlatform("", 0)
|
||||||
}, 10*time.Second, 4*time.Minute)
|
}, 10*time.Second, 5*time.Minute)
|
||||||
|
|
||||||
//每天晚上23:00更新抖店 审核状态
|
//每天晚上23:00更新抖店 审核状态
|
||||||
ScheduleTimerFunc("UpdateStorePoiStatus", func() {
|
ScheduleTimerFunc("UpdateStorePoiStatus", func() {
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ func UpdateFakeWayBillToTiktok() {
|
|||||||
}
|
}
|
||||||
// 推送完成时加多加十分钟,相当于是配送中状态多存货十分钟
|
// 推送完成时加多加十分钟,相当于是配送中状态多存货十分钟
|
||||||
if fakeWayBill[i].Status == model.WaybillStatusDelivered {
|
if fakeWayBill[i].Status == model.WaybillStatusDelivered {
|
||||||
randTime += 480
|
randTime += 1200
|
||||||
}
|
}
|
||||||
fakeWayBill[i].StatusTime = time.Now().Add(time.Duration(randTime) * time.Second).Local()
|
fakeWayBill[i].StatusTime = time.Now().Add(time.Duration(randTime) * time.Second).Local()
|
||||||
fakeWayBill[i].WaybillFinishedAt = time.Now()
|
fakeWayBill[i].WaybillFinishedAt = time.Now()
|
||||||
|
|||||||
Reference in New Issue
Block a user