moonsflyer 8 months ago
parent
commit
af9890f29e
1 changed files with 1 additions and 1 deletions
  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()];
         $where[] = ['expiration_time', '>=', time()];
         if (!empty($this->params['cate_id'])) {
         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'])) {
         if (!empty($this->params['area_id'])) {