|
...
|
...
|
@@ -36,8 +36,10 @@ class APublicModel extends Base |
|
|
|
->where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
|
|
|
$newsNumber = DB::connection('custom_mysql')->table('gl_news')
|
|
|
|
->where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
|
|
|
$keyNumber = DB::connection('custom_mysql')->table('gl_product_keyword')
|
|
|
|
->where('project_id', $project_id)->where('status', self::STATUS_ON)->count();
|
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
return ['product'=>$productNumber,'blog'=>$blogNumber,'news'=>$newsNumber];
|
|
|
|
return ['product'=>$productNumber,'blog'=>$blogNumber,'news'=>$newsNumber,'key'=>$keyNumber];
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
...
|
...
|
|