正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -79,12 +79,12 @@ class MonthReportController extends BaseController | @@ -79,12 +79,12 @@ class MonthReportController extends BaseController | ||
| 79 | $productModel = new Product(); | 79 | $productModel = new Product(); |
| 80 | $info['products_num'] = $productModel->formatQuery(['status'=>1])->count(); | 80 | $info['products_num'] = $productModel->formatQuery(['status'=>1])->count(); |
| 81 | $info['products_num_last_30'] = $productModel->formatQuery( | 81 | $info['products_num_last_30'] = $productModel->formatQuery( |
| 82 | - ['status'=>1,'created_at'=>['between',[now()->subDays(30)->startOfDay()->toDateString(). ' 00:00:00',now()->startOfDay()->toDateString(). ' 00:00:00']] | 82 | + ['status'=>1,'created_at'=>['between',[now()->subDays(30)->startOfDay()->toDateString(). ' 23:59:59',now()->startOfDay()->toDateString(). ' 23:59:59']] |
| 83 | ])->count(); | 83 | ])->count(); |
| 84 | $newsModel = new News(); | 84 | $newsModel = new News(); |
| 85 | $info['news_num'] = $newsModel->formatQuery(['status'=>1])->count(); | 85 | $info['news_num'] = $newsModel->formatQuery(['status'=>1])->count(); |
| 86 | $info['news_num_last_7'] = $newsModel->formatQuery( | 86 | $info['news_num_last_7'] = $newsModel->formatQuery( |
| 87 | - ['status'=>1,'created_at'=>['between',[now()->subDays(7)->startOfDay()->toDateString() . ' 00:00:00',now()->startOfDay()->toDateString(). ' 00:00:00']] | 87 | + ['status'=>1,'created_at'=>['between',[now()->subDays(7)->startOfDay()->toDateString() . ' 23:59:59',now()->startOfDay()->toDateString(). ' 23:59:59']] |
| 88 | ])->count(); | 88 | ])->count(); |
| 89 | $info['service_duration'] = $this->user['service_duration'];//服务天数 | 89 | $info['service_duration'] = $this->user['service_duration'];//服务天数 |
| 90 | $info['ip_total'] = (new Visit())->count();//ip总数 | 90 | $info['ip_total'] = (new Visit())->count();//ip总数 |
-
请 注册 或 登录 后发表评论