Commit d1317895 authored by shajiaiming's avatar shajiaiming

fix pageSize

parent 8eaffa10
...@@ -83,7 +83,7 @@ class GameBetController extends BaseController ...@@ -83,7 +83,7 @@ class GameBetController extends BaseController
$data = null; $data = null;
goto doEnd; goto doEnd;
} }
$data = $query->offset(($page - 1) * 5)->limit(5)->asArray()->all(); $data = $query->offset(($page - 1) * 20)->limit(20)->asArray()->all();
$countQuery = clone $query; $countQuery = clone $query;
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => '20']); $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => '20']);
$data = [ $data = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment