Commit a193013a authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

排序 See merge request !329
parents 5da59ad8 dcec6e70
......@@ -83,7 +83,7 @@ class AirDropController extends BaseController
$expiry_date = date("Y-m-d");
$query->andWhere(['<', 'create_time', $expiry_date]);
$items = $query->offset(($page - 1) * $size)->orderBy('create_time')->limit($size)->all();
$items = $query->offset(($page - 1) * $size)->orderBy('create_time desc')->limit($size)->all();
$countQuery = clone $query;
$total = (int)$countQuery->count();
......
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