1
This commit is contained in:
@@ -177,8 +177,7 @@ func Init() {
|
||||
// 每五分钟轮询一次推送骑手信息坐标给美团
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
delivery.GetOrderRiderInfoToPlatform("")
|
||||
globals.SugarLogger.Debug("五分钟跑一次", time.Now())
|
||||
}, 10*time.Second, 30*time.Second)
|
||||
}, 10*time.Second, 5*time.Minute)
|
||||
|
||||
ScheduleTimerFuncByInterval(func() {
|
||||
defsch.FixedScheduler.ConfirmSelfTakeOrders(jxcontext.AdminCtx, []int{model.VendorIDJD}, time.Now().Add(-48*time.Hour), time.Now().Add(-30*time.Minute), true, true)
|
||||
|
||||
@@ -25,7 +25,6 @@ import (
|
||||
//100-配送单已取消(C端:商家已接单;B端:配送已取消)
|
||||
//注:若同步配送状态为“配送单已取消”,接口仍支持继续同步配送状态。 说明:商家如未上传此信息,则平台默认值为20(现已要求必传)。
|
||||
func GetOrderRiderInfoToPlatform(orderId string) {
|
||||
globals.SugarLogger.Debug("==========GetOrderRiderInfoToPlatform", time.Now())
|
||||
params := make(map[string]interface{}, 0)
|
||||
params["statuss"] ="[20]"
|
||||
params["isDateFinish"] = false
|
||||
@@ -64,7 +63,6 @@ func GetOrderRiderInfoToPlatform(orderId string) {
|
||||
globals.SugarLogger.Debug("==========VendorWaybillId2Waybill:", v.VendorWaybillID)
|
||||
continue
|
||||
}
|
||||
|
||||
riderInfo, err = handlerInfo.Handler.GetRiderInfo(v.VendorOrderID, v.ID+1000000, v.VendorWaybillID)
|
||||
}
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user