xxxrrrdddd 2 年之前
父節點
當前提交
326e901461
共有 1 個文件被更改,包括 16 次插入8 次删除
  1. 16 8
      application/admin/controller/Dashboard.php

+ 16 - 8
application/admin/controller/Dashboard.php

@@ -47,16 +47,24 @@ class Dashboard extends Backend
 
         $dbTableList = Db::query("SHOW TABLE STATUS");
         $this->view->assign([
-            'totaluser'       => User::count(),
+            //'totaluser'       => User::count(),
+            'totaluser'       => 0,
             'totaladdon'      => SysConfig::look('video_view_seconds',0),
-            'totaladmin'      => Admin::count(),
+            //'totaladmin'      => Admin::count(),
+            'totaladmin'      => 0,
             'totalcategory'   => \app\common\model\Category::count(),
-            'todayusersignup' => User::whereTime('jointime', 'today')->count(),
-            'todayuserlogin'  => User::whereTime('logintime', 'today')->count(),
-            'sevendau'        => User::whereTime('jointime|logintime|prevtime', '-7 days')->count(),
-            'thirtydau'       => User::whereTime('jointime|logintime|prevtime', '-30 days')->count(),
-            'threednu'        => User::whereTime('jointime', '-3 days')->count(),
-            'sevendnu'        => User::whereTime('jointime', '-7 days')->count(),
+            //'todayusersignup' => User::whereTime('jointime', 'today')->count(),
+            'todayusersignup' => 0,
+            //'todayuserlogin'  => User::whereTime('logintime', 'today')->count(),
+            'todayuserlogin'  => 0,
+            //'sevendau'        => User::whereTime('jointime|logintime|prevtime', '-7 days')->count(),
+            'sevendau'        => 0,
+            //'thirtydau'       => User::whereTime('jointime|logintime|prevtime', '-30 days')->count(),
+            'thirtydau'       => 0,
+            //'threednu'        => User::whereTime('jointime', '-3 days')->count(),
+            'threednu'        => 0,
+            //'sevendnu'        => User::whereTime('jointime', '-7 days')->count(),
+            'sevendnu'        => 0,
             'dbtablenums'     => count($dbTableList),
             'dbsize'          => array_sum(array_map(function ($item) {
                 return $item['Data_length'] + $item['Index_length'];