+ AcceptOrRefuseFailedGetOrder
+ CallPMCourier + ConfirmReceiveGoods
This commit is contained in:
@@ -34,12 +34,18 @@ func (c *PurchaseHandler) onWaybillMsg(msg *jdapi.CallbackDeliveryStatusMsg) (re
|
||||
order.Status = model.WaybillStatusAcceptCanceled
|
||||
case jdapi.DeliveryStatusCourierArrived:
|
||||
order.Status = model.WaybillStatusCourierArrived
|
||||
// case jdapi.DeliveryStatusFailedGetGoodsWaiting:
|
||||
// order.Status = model.WaybillStatusApplyFailedGetGoods
|
||||
// case jdapi.DeliveryStatusFailedGetGoodsRejected:
|
||||
// order.Status = model.WaybillStatusRefuseFailedGetGoods
|
||||
// case jdapi.DeliveryStatusFailedGetGoods:
|
||||
// order.Status = model.WaybillStatusAgreeFailedGetGoods
|
||||
case jdapi.DeliveryStatusGotGoods:
|
||||
order.Status = model.WaybillStatusDelivering
|
||||
// case jdapi.DeliveryStatusFailedDelivery:
|
||||
// order.Status = model.WaybillStatusDeliverFailed
|
||||
case jdapi.DeliveryStatusFinished:
|
||||
order.Status = model.WaybillStatusDelivered
|
||||
case jdapi.DeliveryStatusFailedDelivery, jdapi.DeliveryStatusFailedGetGoods: // todo 取货失败需不需要当成运单失败?
|
||||
order.Status = model.WaybillStatusFailed
|
||||
default:
|
||||
order.Status = model.WaybillStatusUnknown
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user