作者 郭文星

123

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