1
This commit is contained in:
@@ -185,6 +185,10 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
|
|||||||
order.BusinessType = model.BusinessTypeDingshida
|
order.BusinessType = model.BusinessTypeDingshida
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if utils.Interface2Int64WithDefault(result["delivery_time"], 0) == 0 {
|
||||||
|
order.ExpectedDeliveredTime = getTimeFromTimestamp(utils.Interface2Int64WithDefault(result["estimate_arrival_time"], 0))
|
||||||
|
}
|
||||||
|
|
||||||
originalLng := utils.MustInterface2Float64(result["longitude"])
|
originalLng := utils.MustInterface2Float64(result["longitude"])
|
||||||
originalLat := utils.MustInterface2Float64(result["latitude"])
|
originalLat := utils.MustInterface2Float64(result["latitude"])
|
||||||
order.ConsigneeLng = jxutils.StandardCoordinate2Int(originalLng)
|
order.ConsigneeLng = jxutils.StandardCoordinate2Int(originalLng)
|
||||||
|
|||||||
Reference in New Issue
Block a user