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');// 申请记录