소스 검색

宣传信息增加分类搜索

moonsflyer 6 달 전
부모
커밋
6bb77cca67
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/shopapi/lists/InfoLists.php

+ 3 - 0
app/shopapi/lists/InfoLists.php

@@ -34,6 +34,9 @@ class InfoLists extends BaseShopDataLists
         if(isset($params['type']) && $params['type']<>''){
             $where[] = ['type','=',$params['type']];
         }
+        if(isset($params['cid']) && $params['cid']<>''){
+            $where[] = ['cid','=',$params['cid']];
+        }
         return $where;
     }
     /**