rabin 2 months ago
parent
commit
021e3394d0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/place/api/Resource.php

+ 1 - 1
src/place/api/Resource.php

@@ -77,7 +77,7 @@ class Resource extends Main
         $where['type'] = Dever::input('type', 'is_numeric', '类型');
         $where['type_id'] = Dever::input('type_id', 'is_numeric', '类型ID');
         # 每页10条
-        $set['num'] = 10;
+        $set['num'] = Dever::input('num', 'is_numeric', '分页条数', 3);
         $data = Dever::db('review', 'place')->select($where, $set);
         if ($data) {
             foreach ($data as &$v) {