Переглянути джерело

首页去除数据查询限制

whitefang 1 рік тому
батько
коміт
e50522dc0a
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      app/api/lists/HomeSpecialLists.php

+ 3 - 1
app/api/lists/HomeSpecialLists.php

@@ -33,7 +33,9 @@ class HomeSpecialLists  extends BaseApiDataLists implements ListsSearchInterface
     {
     {
         $where = [];
         $where = [];
         if (!empty($this->params['id'])) {
         if (!empty($this->params['id'])) {
-            $where[] = ['id','>',$this->params['id']];
+            if(empty($this->params['limit'])){
+                $where[] = ['id','>',$this->params['id']];
+            }
             $where[] = ['cover_type','=',1];
             $where[] = ['cover_type','=',1];
         }
         }
         return $where;
         return $where;