Browse Source

宣传信息增加分类搜索

moonsflyer 5 months ago
parent
commit
6bb77cca67
1 changed files with 3 additions and 0 deletions
  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;
     }
     /**