Commit 700cce58 authored by shajiaiming's avatar shajiaiming

修复已知问题

parent 745c73a4
......@@ -98,16 +98,11 @@ class IssueCoinController extends BaseController
$page = \Yii::$app->request->get('page', 1);
$size = \Yii::$app->request->get('size', 5);
if (1 == $platform_id) {
$query = CoinIssueCoin::find()
->select('id, name, total, create_time, status, chain_id')
->orderBy('create_time desc');
} else {
$query = CoinIssueCoin::find()
->select('id, name, total, create_time, status, chain_id')
->where(['platform_id' => $platform_id])
->orderBy('create_time desc');
}
$query = CoinIssueCoin::find()
->select('id, name, total, create_time, status, chain_id')
->where(['platform_id' => $platform_id])
->orderBy('create_time desc');
$countQuery = clone $query;
$models = $query->offset(($page - 1) * $size)->limit($size)->all();
......
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