Commit 8eaffa10 authored by shajiaiming's avatar shajiaiming

调整pageSize

parent 7b9ce2d9
...@@ -85,12 +85,12 @@ class GameBetController extends BaseController ...@@ -85,12 +85,12 @@ class GameBetController extends BaseController
} }
$data = $query->offset(($page - 1) * 5)->limit(5)->asArray()->all(); $data = $query->offset(($page - 1) * 5)->limit(5)->asArray()->all();
$countQuery = clone $query; $countQuery = clone $query;
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => '5']); $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => '20']);
$data = [ $data = [
'list' => $data, 'list' => $data,
'page' => [ 'page' => [
'pageCount' => $pages->pageCount, 'pageCount' => $pages->pageCount,
'pageSize' => 5, 'pageSize' => 20,
'currentPage' => $page, 'currentPage' => $page,
] ]
]; ];
......
/data_wallet/token
\ No newline at end of file
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