正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -41,7 +41,11 @@ class KeywordController extends BaseController | @@ -41,7 +41,11 @@ class KeywordController extends BaseController | ||
| 41 | if(!empty($data)){ | 41 | if(!empty($data)){ |
| 42 | foreach ($data['list'] as &$v){ | 42 | foreach ($data['list'] as &$v){ |
| 43 | $v['product_num'] = Product::where('keyword_id','like' ,'%,'.$v['id'].',%')->count(); | 43 | $v['product_num'] = Product::where('keyword_id','like' ,'%,'.$v['id'].',%')->count(); |
| 44 | - $v['tdk'] = boolval($v['seo_title']) * boolval($v['seo_keywords']) * boolval($v['seo_description']); | 44 | + if(!empty($v['seo_title']) || !empty($v['seo_keywords']) || !empty($v['seo_description'])){ |
| 45 | + $v['tdk'] = 1; | ||
| 46 | + }else{ | ||
| 47 | + $v['tdk'] = 0; | ||
| 48 | + } | ||
| 45 | $v['url'] = $this->user['domain'] . $v['route']; | 49 | $v['url'] = $this->user['domain'] . $v['route']; |
| 46 | } | 50 | } |
| 47 | } | 51 | } |
-
请 注册 或 登录 后发表评论