Browse Source

首页去除数据查询限制

whitefang 1 năm trước cách đây
mục cha
commit
e50522dc0a
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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 = [];
         if (!empty($this->params['id'])) {
-            $where[] = ['id','>',$this->params['id']];
+            if(empty($this->params['limit'])){
+                $where[] = ['id','>',$this->params['id']];
+            }
             $where[] = ['cover_type','=',1];
         }
         return $where;