1
This commit is contained in:
@@ -2,11 +2,12 @@ package uupt
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
tao "git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/tao_vegetable"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
tao "git.rosy.net.cn/baseapi/platformapi/tao_vegetable"
|
||||
"git.rosy.net.cn/jx-callback/business/partner/purchase/tao_vegetable"
|
||||
|
||||
"git.rosy.net.cn/baseapi/platformapi/baidunavi"
|
||||
"git.rosy.net.cn/baseapi/platformapi/mtpsapi"
|
||||
"git.rosy.net.cn/baseapi/platformapi/uuptapi"
|
||||
@@ -223,7 +224,6 @@ func (d DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeison
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
temp := strings.Split(waybill.DriverLastloc, ",") //格式:113.71776,34.767501
|
||||
param := &mtpsapi.RiderInfo{
|
||||
OrderId: orderId,
|
||||
ThirdCarrierOrderId: waybill.OrderCode,
|
||||
@@ -231,8 +231,19 @@ func (d DeliveryHandler) GetRiderInfo(orderId string, deliveryId int64, mtPeison
|
||||
CourierPhone: waybill.DriverMobile,
|
||||
LogisticsProviderCode: mtpsapi.UUPTCode,
|
||||
LogisticsStatus: utils.Str2Int(waybill.State),
|
||||
Longitude: temp[0],
|
||||
Latitude: temp[1],
|
||||
}
|
||||
if len(waybill.DriverLastloc) == 0 {
|
||||
if waybill.State == uuptapi.StateOrderCancel {
|
||||
param.Longitude = waybill.FromLng
|
||||
param.Latitude = waybill.FromLat
|
||||
} else if waybill.State == uuptapi.StateReceiverGetGoods {
|
||||
param.Longitude = waybill.ToLng
|
||||
param.Latitude = waybill.ToLat
|
||||
}
|
||||
} else {
|
||||
temp := strings.Split(waybill.DriverLastloc, ",") //格式:113.71776,34.767501
|
||||
param.Longitude = temp[0]
|
||||
param.Latitude = temp[1]
|
||||
}
|
||||
switch waybill.State {
|
||||
case uuptapi.StateConfirmSuccess:
|
||||
|
||||
Reference in New Issue
Block a user