From cae380f93e77e949a70a6a1e8e9e6153a057038a Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Fri, 17 Nov 2023 14:20:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96=E7=94=B2?= =?UTF-8?q?=E6=96=B9=E5=85=AC=E5=8F=B8=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/middleapi/controller/CompanyController.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/app/middleapi/controller/CompanyController.php b/app/middleapi/controller/CompanyController.php index 1e55c1c00..0312fda80 100644 --- a/app/middleapi/controller/CompanyController.php +++ b/app/middleapi/controller/CompanyController.php @@ -415,4 +415,20 @@ } } + + public function getPartyA() + { + if(!$this->request->isPost()){ + return $this->fail('请求方式错误'); + } + $companyId = $this->request->param('company_id'); + if(empty($companyId)){ + return $this->fail('缺少公司id'); + } + $re = CompanyLogic::getPartyA($companyId); + if ($re === false) { + return $this->fail(CompanyLogic::getError()); + } + return $this->success('成功', $re); + } } \ No newline at end of file