正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
@@ -3,6 +3,7 @@ | @@ -3,6 +3,7 @@ | ||
3 | namespace app\admin\controller; | 3 | namespace app\admin\controller; |
4 | 4 | ||
5 | use app\admin\model\Admin; | 5 | use app\admin\model\Admin; |
6 | +use app\admin\model\litestore\Litestorecategory; | ||
6 | use app\admin\model\User; | 7 | use app\admin\model\User; |
7 | use app\common\controller\Backend; | 8 | use app\common\controller\Backend; |
8 | use app\common\model\Attachment; | 9 | use app\common\model\Attachment; |
@@ -49,7 +50,7 @@ class Dashboard extends Backend | @@ -49,7 +50,7 @@ class Dashboard extends Backend | ||
49 | 'totaluser' => User::count(), | 50 | 'totaluser' => User::count(), |
50 | 'totaladdon' => count(get_addon_list()), | 51 | 'totaladdon' => count(get_addon_list()), |
51 | 'totaladmin' => Admin::count(), | 52 | 'totaladmin' => Admin::count(), |
52 | - 'totalcategory' => \app\common\model\Category::count(), | 53 | + 'totalcategory' => Litestorecategory::count(), |
53 | 'todayusersignup' => User::whereTime('jointime', 'today')->count(), | 54 | 'todayusersignup' => User::whereTime('jointime', 'today')->count(), |
54 | 'todayuserlogin' => User::whereTime('logintime', 'today')->count(), | 55 | 'todayuserlogin' => User::whereTime('logintime', 'today')->count(), |
55 | 'sevendau' => User::whereTime('jointime|logintime|prevtime', '-7 days')->count(), | 56 | 'sevendau' => User::whereTime('jointime|logintime|prevtime', '-7 days')->count(), |
-
请 注册 或 登录 后发表评论