Merge pull request '新增responsibleArea接口' (#34) from zhangwei into dev

Reviewed-on: #34
This commit is contained in:
weiz 2023-11-16 09:49:15 +08:00
commit 8c29ff55a2
1 changed files with 13 additions and 0 deletions

View File

@ -139,4 +139,17 @@
} }
return json($result); 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);
}
} }