Commit 862de68b authored by shajiaiming's avatar shajiaiming

Merge branch 'master' into feature/optimize

parents 74e9dc2c a193013a
......@@ -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