This commit is contained in:
邹宗楠
2023-09-08 11:28:29 +08:00
parent c4abc4c094
commit c7b69e53d5

View File

@@ -919,12 +919,17 @@ func (c *PurchaseHandler) OrderLogisticsStatus(orderId string) (*utils.RiderInfo
if err != nil {
return nil, errors.New("获取本地门店账号信息失败,请重试")
}
status, err := getAPI(orderInfo.VendorOrgCode, 0, "").OrderLogisticsStatus(utils.Str2Int64(orderId))
api := getAPI(orderInfo.VendorOrgCode, orderInfo.JxStoreID, orderInfo.VendorOrderID)
// 获取骑手信息
status, err := api.OrderLogisticsStatus(utils.Str2Int64(orderId))
if err != nil {
return nil, err
}
// 获取骑手坐标最后一个
lng, lat, _ := api.GetDeliveryPath(utils.Str2Int64(orderId), orderInfo.VendorOrderID)
status.Longitude = utils.Float64ToStr(jxutils.IntCoordinate2Standard(int(lng)))
status.Latitude = utils.Float64ToStr(jxutils.IntCoordinate2Standard(int(lat)))
return status, nil
}