修改订单状态回调
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) {
|
||||
order := &model.Waybill{
|
||||
VendorWaybillID: utils.Interface2String(msg.Param.PartnerOrderCode),
|
||||
VendorWaybillID2: utils.Interface2String(msg.Param.OrderId),
|
||||
VendorWaybillID: msg.Param.PartnerOrderCode,
|
||||
VendorWaybillID2: utils.Int64ToStr(msg.Param.OrderId),
|
||||
WaybillVendorID: model.VendorIDFengNiao,
|
||||
CourierName: utils.Interface2String(msg.Param.CarrierDriverName),
|
||||
CourierMobile: utils.Interface2String(msg.Param.CarrierDriverPhone),
|
||||
VendorStatus: utils.Interface2String(msg.Param.OrderStatus),
|
||||
StatusTime: utils.Timestamp2Time(utils.MustInterface2Int64(msg.Param.PushTime)),
|
||||
Remark: utils.Interface2String(msg.Param.Description),
|
||||
CourierName: msg.Param.CarrierDriverName,
|
||||
CourierMobile: msg.Param.CarrierDriverPhone,
|
||||
VendorStatus: utils.Int2Str(msg.Param.OrderStatus),
|
||||
StatusTime: utils.Timestamp2Time(msg.Param.PushTime),
|
||||
Remark: msg.Param.Description,
|
||||
}
|
||||
order.VendorOrderID, order.OrderVendorID = jxutils.SplitUniversalOrderID(order.VendorWaybillID2)
|
||||
orderStatus, err := strconv.Atoi(order.VendorStatus)
|
||||
|
||||
Reference in New Issue
Block a user