Showing
1 changed file
with
3 additions
and
0 deletions
@@ -330,6 +330,7 @@ class OrderModel | @@ -330,6 +330,7 @@ class OrderModel | ||
330 | $result['courierNumbe'] = isset($logistics['data']['express_number']) ? $logistics['data']['express_number'] : ''; | 330 | $result['courierNumbe'] = isset($logistics['data']['express_number']) ? $logistics['data']['express_number'] : ''; |
331 | $expressDetail = isset($logistics['data']['express_detail']) ? $logistics['data']['express_detail'] : array(); | 331 | $expressDetail = isset($logistics['data']['express_detail']) ? $logistics['data']['express_detail'] : array(); |
332 | if (isset($expressDetail) && $expressDetail) { | 332 | if (isset($expressDetail) && $expressDetail) { |
333 | + $logisticsTmp = $result['logistics'][0];//暂存 | ||
333 | $result['logistics'] = array(); | 334 | $result['logistics'] = array(); |
334 | foreach ($expressDetail as $value) { | 335 | foreach ($expressDetail as $value) { |
335 | $pos = stripos($value['accept_address'], ' ') / 3; | 336 | $pos = stripos($value['accept_address'], ' ') / 3; |
@@ -342,6 +343,8 @@ class OrderModel | @@ -342,6 +343,8 @@ class OrderModel | ||
342 | $result['logistics'][] = $value['acceptTime'] . $city . $exInfo; | 343 | $result['logistics'][] = $value['acceptTime'] . $city . $exInfo; |
343 | } | 344 | } |
344 | } | 345 | } |
346 | + //把最初的处理放最后 | ||
347 | + $result['logistics'][]=$logisticsTmp; | ||
345 | } | 348 | } |
346 | } | 349 | } |
347 | } | 350 | } |
-
Please register or login to post a comment