From c6e641bea886707ecc79ae80d9143ecec602db8d Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 2 Dec 2023 19:58:12 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E4=B8=89=E8=BD=AE=E8=BD=A6=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/dataview/Logistics.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controller/api/dataview/Logistics.php b/app/controller/api/dataview/Logistics.php index 9949c316..44ef1327 100644 --- a/app/controller/api/dataview/Logistics.php +++ b/app/controller/api/dataview/Logistics.php @@ -26,10 +26,11 @@ class Logistics extends BaseController { // 请求供销,供销查区域下的公司,在通过公司查三轮车列表 $client = new \GuzzleHttp\Client(); - $getUrl = env('WORKER_HOST_URL') . '/api/index/vehicleCarList?areaCode='.$this->areaCode.'&streetCode='.$this->streetCode; + $getUrl = env('TASK_WORKER_HOST_URL') . '/api/index/vehicleCarList?areaCode='.$this->areaCode.'&streetCode='.$this->streetCode; $response = $client->request('GET', $getUrl); $result = json_decode($response->getBody(), true); $list = $result['data']; - return app('json')->success($list); + $count = count($list); + return app('json')->success(compact('count', 'list')); } } \ No newline at end of file