Commit 182a93a0 authored by shajiaiming's avatar shajiaiming

fix

parent 4c85b338
......@@ -95,10 +95,8 @@ class IssueCoinController extends BaseController
}
$countQuery = clone $query;
$models = $query->offset(($page - 1) * $size)->limit($size)->all();
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => $size]);
$models = $query->offset($pages->offset)
->limit($pages->limit)
->all();
foreach ($models as &$val) {
$val->chain_id = $val->chain->chain_name;
}
......
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