1
This commit is contained in:
@@ -439,8 +439,8 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
|
||||
}
|
||||
|
||||
result := &mtpsapi.RiderInfo{
|
||||
OrderId: "",
|
||||
ThirdCarrierOrderId: orderId,
|
||||
OrderId: orderId,
|
||||
ThirdCarrierOrderId: mtPeisongId,
|
||||
CourierName: order.TransporterName,
|
||||
CourierPhone: order.TransporterPhone,
|
||||
LogisticsProviderCode: string(mtpsapi.DaDaCode),
|
||||
|
||||
@@ -303,8 +303,8 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
|
||||
}
|
||||
|
||||
result := &mtpsapi.RiderInfo{
|
||||
OrderId: utils.Int64ToStr(order.TrackingId),
|
||||
ThirdCarrierOrderId: orderId,
|
||||
OrderId: orderId,
|
||||
ThirdCarrierOrderId: utils.Int64ToStr(order.TrackingId),
|
||||
CourierName: knightInfo.CarrierDriverName,
|
||||
CourierPhone: knightInfo.CarrierDriverPhone,
|
||||
LogisticsProviderCode: string(mtpsapi.FnPsCode),
|
||||
|
||||
@@ -398,8 +398,8 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
|
||||
}
|
||||
|
||||
return &mtpsapi.RiderInfo{
|
||||
OrderId: utils.Interface2String(order["mt_peisong_id"]),
|
||||
ThirdCarrierOrderId: orderId,
|
||||
OrderId: orderId,
|
||||
ThirdCarrierOrderId: utils.Interface2String(order["mt_peisong_id"]),
|
||||
CourierName: utils.Interface2String(order["courier_name"]),
|
||||
CourierPhone: utils.Interface2String(order["courier_phone"]),
|
||||
LogisticsProviderCode: string(mtpsapi.MTPsCode),
|
||||
|
||||
@@ -56,7 +56,7 @@ func GetOrderRiderInfoToPlatform(orderId string) {
|
||||
riderInfo := &mtpsapi.RiderInfo{}
|
||||
if handlerInfo := partner.GetDeliveryPlatformFromVendorID(v.WaybillVendorID); handlerInfo != nil {
|
||||
if v.WaybillVendorID == model.VendorIDDada || v.WaybillVendorID == model.VendorIDFengNiao {
|
||||
riderInfo, err = handlerInfo.Handler.GetRiderInfo(v.VendorOrderID, 0, "")
|
||||
riderInfo, err = handlerInfo.Handler.GetRiderInfo(v.VendorOrderID, 0, v.VendorWaybillID)
|
||||
if err != nil {
|
||||
globals.SugarLogger.Debug("Get Order waybill rider info err FN/DADA :%v", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user