Commit 50f916da authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

test See merge request !9
parents 50fd4470 2b13eef9
...@@ -69,7 +69,6 @@ class CoinTransferController extends BaseController ...@@ -69,7 +69,6 @@ class CoinTransferController extends BaseController
{ {
$model = CoinTransfer::find()->where(['status' => 0])->limit(30)->all(); $model = CoinTransfer::find()->where(['status' => 0])->limit(30)->all();
foreach ($model as $val){ foreach ($model as $val){
echo $val->address."<br/>";
$id = $val->id; $id = $val->id;
$to = $val->address; $to = $val->address;
$amount = $val->amount * 1e8; $amount = $val->amount * 1e8;
...@@ -106,6 +105,7 @@ class CoinTransferController extends BaseController ...@@ -106,6 +105,7 @@ class CoinTransferController extends BaseController
$current_model->hash = $hash; $current_model->hash = $hash;
$current_model->status = 1; $current_model->status = 1;
$current_model->save(); $current_model->save();
echo $val->address."-----".$hash."<br/>";
} }
} }
......
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