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