正在显示
2 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -292,7 +292,7 @@ class ProjectController extends BaseController | @@ -292,7 +292,7 @@ class ProjectController extends BaseController | ||
| 292 | $domainModel = new DomainInfo(); | 292 | $domainModel = new DomainInfo(); |
| 293 | $item['domain'] = !empty($item['domain']) ? $domainModel->getDomain($item['domain']) : ''; | 293 | $item['domain'] = !empty($item['domain']) ? $domainModel->getDomain($item['domain']) : ''; |
| 294 | $item['product_num'] = $data['product'] ?? 0; | 294 | $item['product_num'] = $data['product'] ?? 0; |
| 295 | - $item['keyword_num'] = $item['key'] ?? 0; | 295 | + $item['keyword_num'] = $data['key'] ?? 0; |
| 296 | $item['autologin_code'] = getAutoLoginCode($item['id']); | 296 | $item['autologin_code'] = getAutoLoginCode($item['id']); |
| 297 | $item['article_num'] = ($data['blog'] ?? 0) + ($data['news'] ?? 0); | 297 | $item['article_num'] = ($data['blog'] ?? 0) + ($data['news'] ?? 0); |
| 298 | $item['task_finish_num'] = Task::getNumByProjectId($item['id'], Task::STATUS_DOWN); | 298 | $item['task_finish_num'] = Task::getNumByProjectId($item['id'], Task::STATUS_DOWN); |
| @@ -36,8 +36,10 @@ class APublicModel extends Base | @@ -36,8 +36,10 @@ class APublicModel extends Base | ||
| 36 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); | 36 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); |
| 37 | $newsNumber = DB::connection('custom_mysql')->table('gl_news') | 37 | $newsNumber = DB::connection('custom_mysql')->table('gl_news') |
| 38 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); | 38 | ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); |
| 39 | + $keyNumber = DB::connection('custom_mysql')->table('gl_product_keyword') | ||
| 40 | + ->where('project_id', $project_id)->where('status', self::STATUS_ON)->count(); | ||
| 39 | DB::disconnect('custom_mysql'); | 41 | DB::disconnect('custom_mysql'); |
| 40 | - return ['product'=>$productNumber,'blog'=>$blogNumber,'news'=>$newsNumber]; | 42 | + return ['product'=>$productNumber,'blog'=>$blogNumber,'news'=>$newsNumber,'key'=>$keyNumber]; |
| 41 | } | 43 | } |
| 42 | 44 | ||
| 43 | } | 45 | } |
-
请 注册 或 登录 后发表评论