moonsflyer 8 mesiacov pred
rodič
commit
af9890f29e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      app/api/lists/service/ServiceLists.php

+ 1 - 1
app/api/lists/service/ServiceLists.php

@@ -58,7 +58,7 @@ class ServiceLists extends BaseApiDataLists implements ListsSearchInterface
         $where[] = ['expiration_time', '>=', time()];
         if (!empty($this->params['cate_id'])) {
 
-            $where[] = ['cate_id', 'like', '%' . ',' .$this->params['cate_id'].',' . '%'];
+            $where[] = ['cate_id', 'in', $this->params['cate_id']];
         }
 
         if (!empty($this->params['area_id'])) {