Commit 1ac72752 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

列表条件更新 See merge request !331
parents e6cb5e71 978ee291
...@@ -80,7 +80,7 @@ class AirDropController extends BaseController ...@@ -80,7 +80,7 @@ class AirDropController extends BaseController
$apply_id_arr = explode(',', $apply_ids); $apply_id_arr = explode(',', $apply_ids);
$query->andWhere(['in', 'id', $apply_id_arr]); $query->andWhere(['in', 'id', $apply_id_arr]);
} }
$expiry_date = date("Y-m-d"); $expiry_date = date("Y-m-d", strtotime("+1 day"));
$query->andWhere(['<', 'create_time', $expiry_date]); $query->andWhere(['<', 'create_time', $expiry_date]);
$items = $query->offset(($page - 1) * $size)->orderBy('create_time desc')->limit($size)->all(); $items = $query->offset(($page - 1) * $size)->orderBy('create_time desc')->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