chore: 添加静态资源文件和版本配置文件
添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材 添加系统版本配置文件(.version)和常量定义文件(.constant) 更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件 添加验证码配置文件(captcha.php)和.gitignore规则
This commit is contained in:
76
app/controller/admin/v1/agent/PromoterApply.php
Normal file
76
app/controller/admin/v1/agent/PromoterApply.php
Normal file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
|
||||
namespace app\controller\admin\v1\agent;
|
||||
|
||||
use app\controller\admin\AuthController;
|
||||
use app\services\agent\PromoterApplyServices;
|
||||
use think\annotation\Inject;
|
||||
|
||||
class PromoterApply extends AuthController
|
||||
{
|
||||
/**
|
||||
* @var PromoterApplyServices
|
||||
*/
|
||||
#[Inject]
|
||||
protected PromoterApplyServices $services;
|
||||
|
||||
/**
|
||||
* 分销员申请列表
|
||||
* @return \think\Response
|
||||
* @author wuhaotian
|
||||
* @email 442384644@qq.com
|
||||
* @date 2024/8/21
|
||||
*/
|
||||
public function applyList()
|
||||
{
|
||||
$where = $this->request->getMore([
|
||||
['status', ''],
|
||||
['keyword', ''],
|
||||
]);
|
||||
return $this->success($this->services->applyList($where));
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请审核
|
||||
* @return \think\Response
|
||||
* @author wuhaotian
|
||||
* @email 442384644@qq.com
|
||||
* @date 2024/8/21
|
||||
*/
|
||||
public function applyExamine($id)
|
||||
{
|
||||
return $this->success($this->services->applyExamine($id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请审核保存
|
||||
* @param $id
|
||||
* @return \think\Response
|
||||
* @author wuhaotian
|
||||
* @email 442384644@qq.com
|
||||
* @date 2025/7/16
|
||||
*/
|
||||
public function applyExamineSave($id)
|
||||
{
|
||||
$data = $this->request->postMore([
|
||||
['status', 0],
|
||||
['refusal_reason', ''],
|
||||
]);
|
||||
$this->services->applyExamineSave($id, $data);
|
||||
return $this->success($data['status'] == 1 ? '审核通过' : '拒绝申请');
|
||||
}
|
||||
|
||||
/**
|
||||
* 申请删除
|
||||
* @param $id
|
||||
* @return \think\Response
|
||||
* @author wuhaotian
|
||||
* @email 442384644@qq.com
|
||||
* @date 2024/8/21
|
||||
*/
|
||||
public function applyDelete($id)
|
||||
{
|
||||
$this->services->applyDelete($id);
|
||||
return $this->success('删除成功');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user