订单拣货时间往前提
This commit is contained in:
@@ -41,9 +41,9 @@ const (
|
||||
minute2Schedule3rdCarrier4Ebai = 30 // 饿百的最少转自配送需要的时间(分钟)
|
||||
minMinute2Schedule3rdCarrier = 5 // 转三方配送最少等待时间(分钟)
|
||||
|
||||
time2AutoPickupMin = 14 * time.Minute // 自动拣货等待时间,这个只有在没有PickDeadline信息才有用,否则会根据PickDeadline设置
|
||||
second2AutoPickupGap = 60 //随机60秒
|
||||
time2AutoPickupAhead = 20 * time.Second // 有最后拣货时间的提前值
|
||||
time2AutoPickupMin = 14 * time.Minute // 自动拣货等待时间,这个只有在没有PickDeadline信息才有用,否则会根据PickDeadline设置
|
||||
second2AutoPickupGap = 60 //随机60秒
|
||||
time2AutoPickupAhead = 120 * time.Second // 有最后拣货时间的提前值
|
||||
|
||||
switch2SelfDeliverRetryGap = 3 * time.Second // 转自送失败尝试的时间间隙
|
||||
switch2SelfDeliverRetryCount = 2 // 转自送失败尝试次数
|
||||
|
||||
@@ -109,16 +109,16 @@ func (c *PurchaseHandler) onOrderMsg(vendorOrgCode string, msg *jdapi.CallbackOr
|
||||
c.onOrderComment2(a, msg)
|
||||
})
|
||||
}
|
||||
if msg.StatusID == jdapi.OrderStatusVenderAgreeCancel {
|
||||
order := &model.GoodsOrder{
|
||||
VendorOrgCode: vendorOrgCode,
|
||||
VendorOrderID: msg.BillID,
|
||||
}
|
||||
err2 := c.PickupGoods(order, false, jxcontext.AdminCtx.GetUserName())
|
||||
if err2 != nil {
|
||||
globals.SugarLogger.Warnf("京东取消拣货:%v", err2)
|
||||
}
|
||||
}
|
||||
// if msg.StatusID == jdapi.OrderStatusVenderAgreeCancel {
|
||||
// order := &model.GoodsOrder{
|
||||
// VendorOrgCode: vendorOrgCode,
|
||||
// VendorOrderID: msg.BillID,
|
||||
// }
|
||||
// err2 := c.PickupGoods(order, false, jxcontext.AdminCtx.GetUserName())
|
||||
// if err2 != nil {
|
||||
// globals.SugarLogger.Warnf("京东取消拣货:%v", err2)
|
||||
// }
|
||||
// }
|
||||
err := partner.CurOrderManager.OnOrderStatusChanged(vendorOrgCode, status)
|
||||
retVal = jdapi.Err2CallbackResponse(err, status.VendorStatus)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user