Commit d527b88d authored by shajiaiming's avatar shajiaiming

fix

parent f811852e
......@@ -308,8 +308,8 @@ class AirDropController extends BaseController
$record = AirDropApplyRecord::find()
->where(['apply_id' => $model->id, 'draw_status' => AirDropApplyRecord::STATUS_UNDRAW])
->andWhere(['<', 'create_time', $expiry_date])
->limit(1)
->orderBy('id')
->limit(1)
->one();
if (empty($record)) {
......
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