feat: 新增地址选择插件及订阅消息等多项功能优化
- 新增地址选择插件,支持地图位置选择并返回地址和经纬度 - 新增微信订阅消息发送功能,支持审核结果、提现通知等场景 - 新增订单支付状态查询、提现收款人姓名保存等接口 - 新增服务区域管理,支持按省市区划分并同步到信息发布 - 新增资金流水和营收报表导出功能 - 新增可用优惠券查询、订单退款拆分处理等功能 - 优化后台角标显示、首页数据统计、UI配置下发等 - 修复订单支付并发问题、地区管理逻辑等
这个提交包含在:
@@ -5,6 +5,7 @@ namespace app\admin\controller;
|
||||
use app\admin\model\AdminLog;
|
||||
use app\common\controller\Backend;
|
||||
use think\Config;
|
||||
use think\Db;
|
||||
use think\Hook;
|
||||
use think\Session;
|
||||
use think\Validate;
|
||||
@@ -40,11 +41,29 @@ class Index extends Backend
|
||||
}
|
||||
}
|
||||
//左侧菜单
|
||||
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
||||
'dashboard' => 'hot',
|
||||
'addon' => ['new', 'red', 'badge'],
|
||||
'auth/rule' => __('Menu'),
|
||||
], $this->view->site['fixedpage']);
|
||||
// 角标只展示需要处理的业务,不再使用 hot/new 这类装饰性角标
|
||||
$badges = [];
|
||||
try {
|
||||
$pendingReport = (int)Db::name('fc_report')->where('status', 'pending')->count();
|
||||
$pendingWithdraw = (int)Db::name('fc_withdraw')->where('status', 'auditing')->count();
|
||||
$pendingMerchant = (int)Db::name('fc_merchant')->where('audit_status', 0)->count();
|
||||
if ($pendingReport > 0) {
|
||||
$badges['fc/report'] = [$pendingReport, 'orange'];
|
||||
$badges['fc/content'] = [$pendingReport, 'orange'];
|
||||
}
|
||||
if ($pendingWithdraw > 0) {
|
||||
$badges['fc/withdraw'] = [$pendingWithdraw, 'red'];
|
||||
$badges['fc/trade'] = [$pendingWithdraw, 'red'];
|
||||
}
|
||||
if ($pendingMerchant > 0) {
|
||||
$badges['fc/merchant'] = [$pendingMerchant, 'yellow'];
|
||||
$badges['fc/user'] = [$pendingMerchant, 'yellow'];
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
// 业务表缺失时不影响后台首页
|
||||
}
|
||||
|
||||
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar($badges, $this->view->site['fixedpage']);
|
||||
$action = $this->request->request('action');
|
||||
if ($this->request->isPost()) {
|
||||
if ($action == 'refreshmenu') {
|
||||
|
||||
在新工单中引用
屏蔽一个用户