Commit 3797b536 authored by shajiaiming's avatar shajiaiming

排序规则

parent 06d400ff
......@@ -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('id desc')->limit($size)->all();
$items = $query->offset(($page - 1) * $size)->orderBy('create_time')->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