作者 郭文星

123

... ... @@ -6,6 +6,7 @@ use app\admin\model\AdminLog;
use app\api\controller\inspection\Task;
use app\common\controller\Backend;
use think\Config;
use think\Db;
use think\Hook;
use think\Response;
use think\Session;
... ... @@ -41,10 +42,14 @@ class Index extends Backend
config('fastadmin.' . $key, $cookieValue);
}
}
$dispatch=Db::name("order")
->where("driver_id",null)
->where("is_pay",1)->count();
//左侧菜单
list($menulist, $navlist, $fixedmenu, $referermenu) = $this->auth->getSidebar([
'dashboard' => 'hot',
'addon' => ['new', 'red', 'badge'],
'dispatch' => [$dispatch, 'red', 'badge'],
'auth/rule' => __('Menu'),
], $this->view->site['fixedpage']);
$action = $this->request->request('action');
... ...