1
This commit is contained in:
@@ -599,7 +599,10 @@ func (a *API) GetDeliveryPath(orderId int64, appPoiCode string) (lng, lat int, e
|
|||||||
if err := json.Unmarshal(path, &riderPath); err != nil {
|
if err := json.Unmarshal(path, &riderPath); err != nil {
|
||||||
return 0, 0, err
|
return 0, 0, err
|
||||||
}
|
}
|
||||||
return riderPath[len(riderPath)-1].Longitude, riderPath[len(riderPath)-1].Latitude, nil
|
if len(riderPath) > 0 {
|
||||||
|
return riderPath[len(riderPath)-1].Longitude, riderPath[len(riderPath)-1].Latitude, nil
|
||||||
|
}
|
||||||
|
return 0, 0, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// OrderLogisticsFee 获取订单配送费
|
// OrderLogisticsFee 获取订单配送费
|
||||||
|
|||||||
Reference in New Issue
Block a user