修改订单状态回调
This commit is contained in:
@@ -189,14 +189,14 @@ func (c *DeliveryHandler) GetWaybillFee(order *model.GoodsOrder) (deliveryFeeInf
|
|||||||
// 订单状态
|
// 订单状态
|
||||||
func OnWaybillMsg(msg *fnpsapi.OrderStatusNottify) (resp *fnpsapi.CallbackResponse) {
|
func OnWaybillMsg(msg *fnpsapi.OrderStatusNottify) (resp *fnpsapi.CallbackResponse) {
|
||||||
order := &model.Waybill{
|
order := &model.Waybill{
|
||||||
VendorWaybillID: utils.Interface2String(msg.Param.PartnerOrderCode),
|
VendorWaybillID: msg.Param.PartnerOrderCode,
|
||||||
VendorWaybillID2: utils.Interface2String(msg.Param.OrderId),
|
VendorWaybillID2: utils.Int64ToStr(msg.Param.OrderId),
|
||||||
WaybillVendorID: model.VendorIDFengNiao,
|
WaybillVendorID: model.VendorIDFengNiao,
|
||||||
CourierName: utils.Interface2String(msg.Param.CarrierDriverName),
|
CourierName: msg.Param.CarrierDriverName,
|
||||||
CourierMobile: utils.Interface2String(msg.Param.CarrierDriverPhone),
|
CourierMobile: msg.Param.CarrierDriverPhone,
|
||||||
VendorStatus: utils.Interface2String(msg.Param.OrderStatus),
|
VendorStatus: utils.Int2Str(msg.Param.OrderStatus),
|
||||||
StatusTime: utils.Timestamp2Time(utils.MustInterface2Int64(msg.Param.PushTime)),
|
StatusTime: utils.Timestamp2Time(msg.Param.PushTime),
|
||||||
Remark: utils.Interface2String(msg.Param.Description),
|
Remark: msg.Param.Description,
|
||||||
}
|
}
|
||||||
order.VendorOrderID, order.OrderVendorID = jxutils.SplitUniversalOrderID(order.VendorWaybillID2)
|
order.VendorOrderID, order.OrderVendorID = jxutils.SplitUniversalOrderID(order.VendorWaybillID2)
|
||||||
orderStatus, err := strconv.Atoi(order.VendorStatus)
|
orderStatus, err := strconv.Atoi(order.VendorStatus)
|
||||||
|
|||||||
Reference in New Issue
Block a user