1
This commit is contained in:
@@ -78,16 +78,7 @@ func GetOrderRiderInfoToPlatform(orderId string) {
|
|||||||
globals.SugarLogger.Debug("同步外卖骑手位置信息到美团失败,为获取到订单的骑手信息:", "----")
|
globals.SugarLogger.Debug("同步外卖骑手位置信息到美团失败,为获取到订单的骑手信息:", "----")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if v.WaybillVendorID == model.VendorIDDada {
|
|
||||||
riderInfo.LogisticsProviderCode = string(mtpsapi.DaDaCode)
|
|
||||||
riderInfo.OrderId = v.VendorOrderID // 运单id
|
|
||||||
}
|
|
||||||
if v.WaybillVendorID == model.VendorIDFengNiao {
|
|
||||||
riderInfo.LogisticsProviderCode = string(mtpsapi.FnPsCode)
|
|
||||||
}
|
|
||||||
if v.WaybillVendorID == model.VendorIDMTPS {
|
|
||||||
riderInfo.LogisticsProviderCode = string(mtpsapi.MTPsCode)
|
|
||||||
}
|
|
||||||
riderInfo.ThirdCarrierOrderId = v.VendorWaybillID
|
riderInfo.ThirdCarrierOrderId = v.VendorWaybillID
|
||||||
switch riderInfo.LogisticsStatus {
|
switch riderInfo.LogisticsStatus {
|
||||||
case 20: //配送中
|
case 20: //配送中
|
||||||
@@ -101,6 +92,12 @@ func GetOrderRiderInfoToPlatform(orderId string) {
|
|||||||
default:
|
default:
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if riderInfo.Longitude == "" {
|
||||||
|
riderInfo.Longitude = utils.Float64ToStr(utils.Int2Float64(v.ConsigneeLng) / 1000000)
|
||||||
|
}
|
||||||
|
if riderInfo.Latitude == "" {
|
||||||
|
riderInfo.Latitude = utils.Float64ToStr(utils.Int2Float64(v.ConsigneeLat) / 1000000)
|
||||||
|
}
|
||||||
// 目前只推送美团骑手信息
|
// 目前只推送美团骑手信息
|
||||||
switch v.VendorID {
|
switch v.VendorID {
|
||||||
case model.VendorIDMTWM: // 美团发单
|
case model.VendorIDMTWM: // 美团发单
|
||||||
|
|||||||
Reference in New Issue
Block a user