fix(admin): 下线退款重发功能并优化用户详情页布局
- 移除后台订单和支付流水的退款重发按钮及接口 - 新增用户详情页分区导航和资金流水筛选功能 - 升级账号安全页面为企业资质认证功能 - 新增企业资质相关测试用例和图标 - 升级版本号至1.0.96
这个提交包含在:
@@ -34,9 +34,13 @@ class WalletLog extends Backend
|
||||
public function index()
|
||||
{
|
||||
$this->request->filter(['strip_tags', 'trim']);
|
||||
$scopeUserId = $this->request->get('scope_user_id/d', 0);
|
||||
if (false === $this->request->isAjax()) {
|
||||
$totalIncome = round((float)Db::name('wallet_log')->where('amount', '>', 0)->sum('amount'), 2);
|
||||
$totalOutflow = round(abs((float)Db::name('wallet_log')->where('amount', '<', 0)->sum('amount')), 2);
|
||||
$scope = function ($query) use ($scopeUserId) {
|
||||
if ($scopeUserId > 0) $query->where('user_type', 'user')->where('user_id', $scopeUserId);
|
||||
};
|
||||
$totalIncome = round((float)Db::name('wallet_log')->where($scope)->where('amount', '>', 0)->sum('amount'), 2);
|
||||
$totalOutflow = round(abs((float)Db::name('wallet_log')->where($scope)->where('amount', '<', 0)->sum('amount')), 2);
|
||||
$this->view->assign([
|
||||
'totalIncome' => $totalIncome,
|
||||
'totalOutflow' => $totalOutflow,
|
||||
@@ -49,6 +53,7 @@ class WalletLog extends Backend
|
||||
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
|
||||
$list = $this->model
|
||||
->where($where)
|
||||
->where(function ($query) use ($scopeUserId) { if ($scopeUserId > 0) $query->where('user_type', 'user')->where('user_id', $scopeUserId); })
|
||||
->order($sort, $order)
|
||||
->paginate($limit);
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户