From ef8fbd9f709d454c33b25b338b38b3bcc33fb361 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Thu, 1 Feb 2024 18:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=20-=20=E7=BC=96=E8=BE=91=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E8=8E=B7=E5=8F=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/admin/marketing/Agent.php | 9 +++++--- app/controller/api/Agent.php | 26 ++++++++++++++++++++++++ route/api.php | 2 ++ 3 files changed, 34 insertions(+), 3 deletions(-) diff --git a/app/controller/admin/marketing/Agent.php b/app/controller/admin/marketing/Agent.php index f595efe..003caff 100644 --- a/app/controller/admin/marketing/Agent.php +++ b/app/controller/admin/marketing/Agent.php @@ -219,7 +219,12 @@ class Agent extends BaseController{ return app('json')->success($data); } - // 审核 + /** + * Common: 审核 + * Author: wu-hui + * Time: 2024/02/01 18:00 + * @return mixed + */ public function toExamine(){ // 参数获取 $params = $this->request->params(['id','status','reason']); @@ -237,8 +242,6 @@ class Agent extends BaseController{ } - - /** * Common: 配置信息 - 修改配置信息 * Author: wu-hui diff --git a/app/controller/api/Agent.php b/app/controller/api/Agent.php index 21601fb..a484c54 100644 --- a/app/controller/api/Agent.php +++ b/app/controller/api/Agent.php @@ -173,6 +173,32 @@ class Agent extends BaseController{ return compact("agentApplyId", "data"); } + /** + * Common: 获取申请记录 + * Author: wu-hui + * Time: 2024/02/01 18:02 + * @return mixed + */ + public function applyRecord(){ + [$page, $limit] = $this->getPage(); + $params = $this->request->params([]); + $params['uid'] = $this->request->uid(); + $data = app()->make(AgentApplyRepository::class)->getList((array)$params,(int)$page,(int)$limit); + + return app('json')->success($data); + } + /** + * Common: 单条申请信息 + * Author: wu-hui + * Time: 2024/02/01 18:27 + * @return mixed + */ + public function applyInfo(){ + $applyId = $this->request->param('apply_id'); + $data = app()->make(AgentApplyRepository::class)->getSearchModel(['id'=>$applyId])->findOrEmpty()->toArray(); + + return app('json')->success($data); + } } diff --git a/route/api.php b/route/api.php index a437642..a8dd7db 100644 --- a/route/api.php +++ b/route/api.php @@ -389,6 +389,8 @@ Route::group('api/', function () { Route::get('single_agent_info/:id', 'singleAgentInfo');// 获取单个代理人员信息 Route::get('get_config', 'getConfig');// 获取配置信息 Route::post('agent_apply', 'apply');// 提交申请信息 + Route::post('apply_record', 'applyRecord');// 申请记录 + Route::post('apply_info', 'applyInfo');// 申请记录