Commit 260049a9 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

fix See merge request !393
parents 6241859d da7fd8fd
...@@ -334,4 +334,16 @@ class AirDropController extends Controller ...@@ -334,4 +334,16 @@ class AirDropController extends Controller
} }
return 0; return 0;
} }
/**
* fix失败空投
* @return
*/
public function actionFix()
{
$ids = AirDropApplyRecord::find()->select('id')->where(['draw_status' => AirDropApplyRecord::STATUS_DRAW_FAIL])->asArray()->all();
$ids = array_column($ids, 'id');
if (empty($ids)) return 0;
AirDropApplyRecord::updateAll(['draw_status' => AirDropApplyRecord::STATUS_DRAWING], ['id' => $ids]);
}
} }
\ No newline at end of file
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