Explorar o código

宣传信息增加分类搜索

moonsflyer hai 5 meses
pai
achega
6bb77cca67
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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']<>''){
         if(isset($params['type']) && $params['type']<>''){
             $where[] = ['type','=',$params['type']];
             $where[] = ['type','=',$params['type']];
         }
         }
+        if(isset($params['cid']) && $params['cid']<>''){
+            $where[] = ['cid','=',$params['cid']];
+        }
         return $where;
         return $where;
     }
     }
     /**
     /**