|
|
|
@ -63,8 +63,8 @@ class HorsemanService implements HorsemanServiceInterface |
|
|
|
//获取订单信息
|
|
|
|
$order = OrderMain::where('global_order_id',$globalOrderId) |
|
|
|
->select( |
|
|
|
'lat as origi_lat', |
|
|
|
'lng as origi_lng', |
|
|
|
'lat', |
|
|
|
'lng', |
|
|
|
'state', |
|
|
|
'market_id' |
|
|
|
) |
|
|
|
@ -76,15 +76,13 @@ class HorsemanService implements HorsemanServiceInterface |
|
|
|
//获取市场信息
|
|
|
|
$market = Market::where('id',$order->market_id) |
|
|
|
->select( |
|
|
|
'lat as destination_lat', |
|
|
|
'lng as destination_lng' |
|
|
|
'lat', |
|
|
|
'lng' |
|
|
|
) |
|
|
|
->first(); |
|
|
|
$res = [ |
|
|
|
'origi_lat' => $order->origi_lat, |
|
|
|
'origi_lng' => $order->origi_lng, |
|
|
|
'destination_lat' => $market->destination_lat, |
|
|
|
'destination_lng' => $market->destination_lng |
|
|
|
'order' => $order, |
|
|
|
'market' => $market |
|
|
|
]; |
|
|
|
return $res; |
|
|
|
} |