From a9eeab3456629a4733c0df85fde8fe7da8c1724c Mon Sep 17 00:00:00 2001 From: weiz Date: Sat, 11 Nov 2023 11:00:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=95=86=E6=88=B7=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/company/MerchantController.php | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 app/adminapi/controller/company/MerchantController.php diff --git a/app/adminapi/controller/company/MerchantController.php b/app/adminapi/controller/company/MerchantController.php new file mode 100644 index 00000000..3f3163ea --- /dev/null +++ b/app/adminapi/controller/company/MerchantController.php @@ -0,0 +1,53 @@ +reqHeader = [ + "appid:".env('app.app_id'), + "timestamp:".time(), + "sign:".makeSign(['appid'=>env('app.app_id'),'timestamp'=>time()],env('app.app_secret')) + ]; + } + + //商户档案列表 + public function merchantRecordLists(): Json + { + $params = $this->request->get(['page_no','page_size','merchant_name','master_name','master_phone']); + $result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantRecordLists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + //商户认证列表 + public function merchantAuthLists(): Json + { + $params = $this->request->get(['page_no','page_size','merchant_name','organization_code','master_name']); + $result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantAuthLists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + + //商户申请列表 + public function merchantApplyLists(): Json + { + $params = $this->request->get(['page_no','page_size','check_status','type']); + $result = curl_post(env('project.worker_domain').'/middleapi/merchant/merchantApplyLists',$params,$this->reqHeader); + if($result['code'] == 0){ + return $this->fail($result['msg']); + } + return json($result); + } + } \ No newline at end of file -- 2.40.1