Browse Source

Wesmiler 校企小程序 更新 6.17

wesmiler 3 năm trước cách đây
mục cha
commit
46ad3a7165
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/store/model/User.php

+ 2 - 2
app/store/model/User.php

@@ -82,7 +82,7 @@ class User extends UserModel
      * @return \think\Paginator
      * @throws \think\db\exception\DbException
      */
-    public function getList(array $param = [])
+    public function getList(array $param = [], int $listRows=15)
     {
         // 检索查询条件
         $filter = $this->getFilter($param);
@@ -91,7 +91,7 @@ class User extends UserModel
             ->where($filter)
             ->where('is_delete', '=', '0')
             ->order(['create_time' => 'desc'])
-            ->paginate(15);
+            ->paginate($listRows);
     }
 
     /**