This commit is contained in:
邹宗楠
2022-05-19 11:56:44 +08:00
parent 995d7f7656
commit 95be84e180
4 changed files with 7 additions and 7 deletions

View File

@@ -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),

View File

@@ -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),

View File

@@ -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),

View File

@@ -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