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