|
...
|
...
|
@@ -8,6 +8,7 @@ use App\Http\Logic\Bside\Product\KeywordLogic; |
|
|
|
use App\Http\Requests\Bside\Product\KeywordRequest;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\KeywordPage;
|
|
|
|
use App\Models\Product\KeywordRelated;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Rules\Ids;
|
|
|
|
use Illuminate\Http\Request;
|
|
...
|
...
|
@@ -35,7 +36,7 @@ class KeywordController extends BaseController |
|
|
|
$data = $keyword->lists($this->map,$this->page,$this->row,$this->order,$filed);
|
|
|
|
if(!empty($data)){
|
|
|
|
foreach ($data['list'] as &$v){
|
|
|
|
$v['product_num'] = Product::where('keyword_id','like' ,'%,'.$v['id'].',%')->count();
|
|
|
|
$v['product_num'] = KeywordRelated::where('keyword_id',$v['id'])->count();
|
|
|
|
if(!empty($v['seo_title']) || !empty($v['seo_keywords']) || !empty($v['seo_description'])){
|
|
|
|
$v['tdk'] = 1;
|
|
|
|
}else{
|
...
|
...
|
|