Commit f890ff84 authored by shajiaiming's avatar shajiaiming

fix

parent 13002854
......@@ -97,7 +97,7 @@ class CoinDogController extends BaseController
$data = null;
goto doEnd;
}
$data = $query->offset(($page - 1) * 20)->limit(20)->asArray()->all();
$data = $query->offset(($page - 1) * $size)->limit($size)->asArray()->all();
$countQuery = clone $query;
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => $size]);
$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