Commit b59cef35 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/cross_chain' into 'master'

fix See merge request !103
parents 3794327b 25569505
...@@ -85,7 +85,7 @@ class ExchangeBusiness ...@@ -85,7 +85,7 @@ class ExchangeBusiness
goto doEnd; goto doEnd;
} }
if (strtoupper($tag) == 'RYH' || strtoupper($tag) == 'WL' || strtoupper($tag) == 'ETS' || strtoupper($tag) == 'LIMS' || strtoupper($tag) == 'AT' || strtoupper($tag) == 'BTJ') { if (strtoupper($tag) == 'RYH' || strtoupper($tag) == 'CNDT' || strtoupper($tag) == 'WL' || strtoupper($tag) == 'ETS' || strtoupper($tag) == 'LIMS' || strtoupper($tag) == 'AT' || strtoupper($tag) == 'BTJ') {
$quotation = [ $quotation = [
'low' => 0, 'low' => 0,
'high' => 0, 'high' => 0,
......
...@@ -33,8 +33,8 @@ class CrossChainController extends Controller ...@@ -33,8 +33,8 @@ class CrossChainController extends Controller
continue; continue;
} }
go(function () use ($val) { //go(function () use ($val) {
\Co::sleep(0.5); // \Co::sleep(0.5);
$node_params = $val['transfer_url']; $node_params = $val['transfer_url'];
$node_params = explode(':', $node_params); $node_params = explode(':', $node_params);
$node_params = [ $node_params = [
...@@ -62,7 +62,7 @@ class CrossChainController extends Controller ...@@ -62,7 +62,7 @@ class CrossChainController extends Controller
} }
$currentModel->save(); $currentModel->save();
}); //});
} }
echo date('Y-m-d H:i:s') . '跨链交易成功' . PHP_EOL; echo date('Y-m-d H:i:s') . '跨链交易成功' . PHP_EOL;
return 0; return 0;
...@@ -89,6 +89,7 @@ class CrossChainController extends Controller ...@@ -89,6 +89,7 @@ class CrossChainController extends Controller
$send_result = $val['send_result']; $send_result = $val['send_result'];
$result = $service->QueryTransaction($send_result); $result = $service->QueryTransaction($send_result);
if (-1 == $result['code']) { if (-1 == $result['code']) {
if('tx not exist' == $result['msg']) continue;
$msg = $result['msg']; $msg = $result['msg'];
$query_result = $result['code']; $query_result = $result['code'];
goto doEnd; goto doEnd;
......
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