This commit is contained in:
邹宗楠
2023-09-21 18:25:20 +08:00
parent b81260a6da
commit 08cea149c7

View File

@@ -185,6 +185,10 @@ func (p *PurchaseHandler) Map2Order(orderData map[string]interface{}) (order *mo
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"])
originalLat := utils.MustInterface2Float64(result["latitude"])
order.ConsigneeLng = jxutils.StandardCoordinate2Int(originalLng)