修改骑手位置推送

This commit is contained in:
邹宗楠
2022-05-18 09:42:41 +08:00
parent 4dff237ce4
commit 5fb999840e
2 changed files with 2 additions and 2 deletions

View File

@@ -303,7 +303,7 @@ func (c *DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeiso
}
return &mtpsapi.RiderInfo{
OrderId: "",
OrderId: utils.Int64ToStr(order.TrackingId),
ThirdCarrierOrderId: orderId,
CourierName: knightInfo.CarrierDriverName,
CourierPhone: knightInfo.CarrierDriverPhone,

View File

@@ -76,6 +76,7 @@ func GetOrderRiderInfoToPlatform(orderId string) {
}
if v.WaybillVendorID == model.VendorIDDada {
riderInfo.LogisticsProviderCode = "10002"
riderInfo.OrderId = v.VendorOrderID // 运单id
}
if v.WaybillVendorID == model.VendorIDFengNiao {
riderInfo.LogisticsProviderCode = "10004"
@@ -84,7 +85,6 @@ func GetOrderRiderInfoToPlatform(orderId string) {
riderInfo.LogisticsProviderCode = "10032"
}
riderInfo.ThirdCarrierOrderId = v.VendorWaybillID
// 目前只推送美团骑手信息
switch v.VendorID {
case model.VendorIDMTWM: // 美团发单