Commit de243275 authored by shajiaiming's avatar shajiaiming

fix

parent b0b5da40
......@@ -68,7 +68,7 @@ class CrossChainController extends BaseController
$code = -1;
$msg = 'fail';
$data = null;
$step = 0;
$request = Yii::$app->request;
if (!$request->isGet) {
$msg = '请求错误!';
......@@ -89,7 +89,7 @@ class CrossChainController extends BaseController
}
sort($model);
$step = 0;
foreach ($model as $key => $val) {
//未交易
if ('0' == $val['send_result'] && '0' == $val['query_result'] && '0' == $val['msg']) {
......
......@@ -54,6 +54,7 @@ class CrossChainController extends Controller
});
}
echo date('Y-m-d H:i:s') . '跨链交易成功' . PHP_EOL;
return 0;
}
......@@ -100,5 +101,7 @@ class CrossChainController extends Controller
$currentModel->msg = $msg;
$currentModel->save();
}
echo date('Y-m-d H:i:s') . '查询成功' . PHP_EOL;
return 0;
}
}
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/bwallet/dev_token_config/yii cross-chain/auto-transfer >> /data_wallet/bwallet/auto-transfer.log 2>&1; sleep 2; done &
\ No newline at end of file
#!/bin/bash
while true; do php /data_wallet/bwallet/dev_token_config/yii cross-chain/query-transaction >> /data_wallet/bwallet/query-transaction.log 2>&1; sleep 5; done &
\ 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