|
@@ -7,7 +7,7 @@ use app\common\controller\Backend;
|
|
|
use think\Config;
|
|
|
use think\Hook;
|
|
|
use think\Validate;
|
|
|
-
|
|
|
+use think\Db;
|
|
|
/**
|
|
|
* 后台首页
|
|
|
* @internal
|
|
@@ -33,10 +33,10 @@ class Index extends Backend
|
|
|
{
|
|
|
//各项为审核的,待处理的数量
|
|
|
|
|
|
- /*$wait = [
|
|
|
+ $wait = [
|
|
|
'wait_report' => Db::name('report')->where('status',0)->count(),
|
|
|
'wait_dt_report' => Db::name('topic_dongtai_report')->where('status',0)->count(),
|
|
|
- 'wait_user_audit' => Db::name('user_audit')->where('status',0)->count(),
|
|
|
+ 'wait_user_audit' => Db::name('user_audit')->where('type','neq','audio_seconds')->where('status',0)->count(),
|
|
|
'wait_user_idconfirm' => Db::name('user_idconfirm')->where('status',0)->count(),
|
|
|
'wait_take_cash' => Db::name('take_cash')->where('status',0)->count(),
|
|
|
'wait_dongtai' => Db::name('topic_dongtai')->where('auditstatus',0)->count(),
|
|
@@ -44,8 +44,7 @@ class Index extends Backend
|
|
|
|
|
|
'wait_introapply' => Db::name('user_intro_apply')->where('status',0)->count(),
|
|
|
'wait_withdraw' => Db::name('withdraw')->where('status',0)->count(),
|
|
|
- ];*/
|
|
|
-
|
|
|
+ ];
|
|
|
|
|
|
//左侧菜单
|
|
|
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
|
|
@@ -54,8 +53,17 @@ class Index extends Backend
|
|
|
// 'auth/rule' => __('Menu'),
|
|
|
// 'general' => ['new', 'purple'],
|
|
|
// 'anquanxuncha' => 3,
|
|
|
-// 'report' => $wait['wait_report'],
|
|
|
-// 'topicdongtaireport' => $wait['wait_dt_report'],
|
|
|
+ 'report' => $wait['wait_report'],
|
|
|
+ 'topicdongtaireport' => $wait['wait_dt_report'],
|
|
|
+
|
|
|
+ 'useraudit' => $wait['wait_user_audit'],
|
|
|
+ 'useridconfirm' => $wait['wait_user_idconfirm'],
|
|
|
+ 'takecash' => $wait['wait_take_cash'],
|
|
|
+ 'topicdongtai' => $wait['wait_dongtai'],
|
|
|
+ 'usergreet' => $wait['wait_greet'],
|
|
|
+
|
|
|
+ 'userintroapply' => $wait['wait_introapply'],
|
|
|
+ 'withdraw' => $wait['wait_withdraw'],
|
|
|
], $this->view->site['fixedpage']);
|
|
|
$action = $this->request->request('action');
|
|
|
if ($this->request->isPost()) {
|