feat: 新增师傅入驻审核与接单状态联动功能
- 新增师傅资质审核模块及权限 - 未审核通过的师傅默认禁用接单状态 - 新增售后退款申诉功能与相关界面 - 新增用户钱包管理及充值功能 - 更新服务定价矩阵相关数据库结构 - 修复微信支付证书验证问题
这个提交包含在:
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\controller;
|
||||
|
||||
use app\common\controller\Backend;
|
||||
use app\common\library\FinanceConfigService;
|
||||
|
||||
/**
|
||||
* 用户钱包充值配置中心
|
||||
*
|
||||
* 统一管理:
|
||||
* 1. 用户钱包在线充值总开关与停服提示
|
||||
* 2. 充值快捷面额选项与默认选中项
|
||||
* 3. 单笔最低/最高充值限额与单日累计限额
|
||||
* 4. 钱包主页安全保障提示与充值服务规则文案
|
||||
*
|
||||
* @icon fa fa-money
|
||||
*/
|
||||
class RechargeConfig extends Backend
|
||||
{
|
||||
protected $noNeedRight = [];
|
||||
|
||||
/**
|
||||
* 充值配置首页
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
$cfg = FinanceConfigService::getRechargeConfig();
|
||||
$this->view->assign('cfg', $cfg);
|
||||
return $this->view->fetch();
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存充值配置
|
||||
*/
|
||||
public function save()
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
$params = $this->request->post('row/a', []);
|
||||
if (empty($params)) {
|
||||
$this->error('未获取到需要保存的配置参数');
|
||||
}
|
||||
|
||||
try {
|
||||
FinanceConfigService::saveConfigs($params);
|
||||
$this->success('充值配置已成功保存并即时生效');
|
||||
} catch (\InvalidArgumentException $e) {
|
||||
$this->error($e->getMessage());
|
||||
} catch (\Throwable $e) {
|
||||
\think\Log::error('[RechargeConfig::save] ' . $e->getMessage());
|
||||
$this->error('保存配置失败:' . $e->getMessage());
|
||||
}
|
||||
}
|
||||
$this->error('非法请求');
|
||||
}
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户