正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -9,6 +9,7 @@ | @@ -9,6 +9,7 @@ | ||
| 9 | 9 | ||
| 10 | namespace App\Console\Commands\ProjectWeeklyReport; | 10 | namespace App\Console\Commands\ProjectWeeklyReport; |
| 11 | 11 | ||
| 12 | +use App\Models\Blog\Blog; | ||
| 12 | use App\Models\Com\Notify; | 13 | use App\Models\Com\Notify; |
| 13 | use App\Models\Com\V6WeeklyReport; | 14 | use App\Models\Com\V6WeeklyReport; |
| 14 | use App\Models\HomeCount\Count; | 15 | use App\Models\HomeCount\Count; |
| @@ -98,6 +99,8 @@ class WeekProject extends Command | @@ -98,6 +99,8 @@ class WeekProject extends Command | ||
| 98 | $data['product_num'] = $productModel->counts(['status'=>1]) ?? 0; | 99 | $data['product_num'] = $productModel->counts(['status'=>1]) ?? 0; |
| 99 | $newsModel = new News(); | 100 | $newsModel = new News(); |
| 100 | $data['news_num'] = $newsModel->counts(['status'=>1]) ?? 0; | 101 | $data['news_num'] = $newsModel->counts(['status'=>1]) ?? 0; |
| 102 | + $blogModel = new Blog(); | ||
| 103 | + $data['blog_num'] = $blogModel->counts(['status'=>1]) ?? 0; | ||
| 101 | $notifyModel = new Notify(); | 104 | $notifyModel = new Notify(); |
| 102 | $data['main_update_num'] = $notifyModel->counts(['type'=>1,'route'=>1,'project_id'=>$value['id']]) ?? 0; | 105 | $data['main_update_num'] = $notifyModel->counts(['type'=>1,'route'=>1,'project_id'=>$value['id']]) ?? 0; |
| 103 | $data['aggregation_update_num'] = $notifyModel->counts(['type'=>1,'route'=>4,'project_id'=>$value['id']]) ?? 0; | 106 | $data['aggregation_update_num'] = $notifyModel->counts(['type'=>1,'route'=>4,'project_id'=>$value['id']]) ?? 0; |
-
请 注册 或 登录 后发表评论