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