소스 검색

更新 'application/index/controller/Base.php'

Me 5 년 전
부모
커밋
5a7c8bb102
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/index/controller/Base.php

+ 1 - 1
application/index/controller/Base.php

@@ -19,7 +19,7 @@ class Base extends Controller
         }
 
         // 找到所有商品,判断商品是否在标签内
-        $ta = db('good')->field('id, title, tags_id')->select();
+        $ta = db('good')->field('id, title, tags_id')->where('tags_id','<>','')->select();//查询出tags_id不为空的所有数据
         foreach ($ta as $val) {
             $tag_ids = explode(',', $val['tags_id']);