From 01a2557eb5490e52fb0a63a66ac05e85b32d8c4f Mon Sep 17 00:00:00 2001 From: weiz Date: Thu, 16 Nov 2023 09:47:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EresponsibleArea=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/company/CompanyController.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/adminapi/controller/company/CompanyController.php b/app/adminapi/controller/company/CompanyController.php index d24d3a9e..88119670 100644 --- a/app/adminapi/controller/company/CompanyController.php +++ b/app/adminapi/controller/company/CompanyController.php @@ -139,4 +139,17 @@ } return json($result); } + + public function responsibleArea(): Json + { + $params = $this->request->get(['key','value','company_type']); + if(empty($params['key']) || empty($params['value']) || empty($params['company_type'])){ + return $this->fail('缺少必要参数'); + } + $result = curl_post(env('project.worker_domain').'/middleapi/company/responsibleArea',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } } \ No newline at end of file