Commit 50fd4470 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/airdrop' into 'master'

test See merge request !8
parents 64649198 634f5cfb
...@@ -69,6 +69,8 @@ class CoinTransferController extends BaseController ...@@ -69,6 +69,8 @@ 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;
$to = $val->address; $to = $val->address;
$amount = $val->amount * 1e8; $amount = $val->amount * 1e8;
$fee = 100000; $fee = 100000;
...@@ -95,7 +97,6 @@ class CoinTransferController extends BaseController ...@@ -95,7 +97,6 @@ class CoinTransferController extends BaseController
} }
$sign_str = $signRawTx['result']; $sign_str = $signRawTx['result'];
$result = $service->sendTransaction($sign_str); $result = $service->sendTransaction($sign_str);
var_dump($result);exit;
if(0 != $result['code']){ if(0 != $result['code']){
continue; continue;
} }
......
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