소스 검색

首页去除数据查询限制

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 = [];
         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;