|
|
@@ -303,7 +303,7 @@ class DispatchService
|
|
|
'district_name' => $order['dist'],
|
|
|
'house_number' => $order['floor'],
|
|
|
'contacts_name' => $order['customName'],
|
|
|
- 'contacts_phone_no' => isset($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile']) ? $order['receiveMobile'] : '',
|
|
|
+ 'contacts_phone_no' => isset($order['customMobile'])&&!empty($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile'])&&!empty($order['receiveMobile']) ? $order['receiveMobile'] : $order['bookMobile'],
|
|
|
'lat_lon' => ['lat' => (float)$order['lat'], 'lon' => (float)$order['long']],
|
|
|
]
|
|
|
],
|
|
|
@@ -347,7 +347,7 @@ class DispatchService
|
|
|
return [
|
|
|
'platform' => 'fengniao',
|
|
|
'partner_order_code' => $order['orderSn'],
|
|
|
- 'receiver_primary_phone' => isset($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile']) ? $order['receiveMobile'] : '',
|
|
|
+ 'receiver_primary_phone' => isset($order['customMobile'])&&!empty($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile'])&&!empty($order['receiveMobile']) ? $order['receiveMobile'] : $order['bookMobile'],
|
|
|
'receiver_name' => $order['customName'],
|
|
|
'receiver_latitude' => (float)$order['lat'],
|
|
|
'receiver_longitude' => (float)$order['long'],
|
|
|
@@ -386,7 +386,7 @@ class DispatchService
|
|
|
'toAddress' => $order['address'],
|
|
|
'toAddressDetail' => $order['floor'],
|
|
|
'toReceiverName' => $order['customName'],
|
|
|
- 'toMobile' => isset($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile']) ? $order['receiveMobile'] : '',
|
|
|
+ 'toMobile' => isset($order['customMobile'])&&!empty($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile'])&&!empty($order['receiveMobile']) ? $order['receiveMobile'] : $order['bookMobile'],
|
|
|
'toLatitude' => (float)$order['lat'],
|
|
|
'toLongitude' => (float)$order['long'],
|
|
|
'goodType' => 7,
|
|
|
@@ -493,7 +493,7 @@ class DispatchService
|
|
|
'receiver_lng' => (float)$order['long'],
|
|
|
'callback' => $callbackUrl,
|
|
|
'cargo_weight' => isset($order['weight']) ? (float)$order['weight'] : 1.0,
|
|
|
- 'receiver_phone' => isset($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile']) ? $order['receiveMobile'] : '',
|
|
|
+ 'receiver_phone' => isset($order['customMobile'])&&!empty($order['customMobile']) ? $order['customMobile'] : isset($order['receiveMobile'])&&!empty($order['receiveMobile']) ? $order['receiveMobile'] : $order['bookMobile'],
|
|
|
'tips' => 0,
|
|
|
'info' => $order['remark'] ?? '',
|
|
|
'product_list' => $productList,
|