Commit fa27973d authored by shajiaming's avatar shajiaming

fix

parent f79117ee
...@@ -103,9 +103,6 @@ class OrderController extends Controller ...@@ -103,9 +103,6 @@ class OrderController extends Controller
// 'host' => '172.16.100.77', // 'host' => '172.16.100.77',
// 'port' => 8801 // 'port' => 8801
// ]; // ];
$service = new Chain33Service($node_params);
$result = $service->getHeight();
$consensHeight = $result['result']['consensHeight'];
$current_time = time(); $current_time = time();
foreach ($model as $val) { foreach ($model as $val) {
...@@ -163,9 +160,14 @@ class OrderController extends Controller ...@@ -163,9 +160,14 @@ class OrderController extends Controller
doEnd : doEnd :
//3步交易情况下需要做高度判断,2步交易注释IF判断 //3步交易情况下需要做高度判断,2步交易注释IF判断
if (CoinCTocTransfer::CONSENSUE_YES == $val['consensus'] && true == $switch && isset($height) && ($consensHeight < $height)) { if (CoinCTocTransfer::CONSENSUE_YES == $val['consensus'] && true == $switch && isset($height)) {
$service = new Chain33Service($node_params);
$result = $service->getHeight();
$consensHeight = $result['result']['consensHeight'];
if ($consensHeight < $height) {
continue; continue;
} }
}
$currentModel = CoinCTocTransfer::findOne($val['id']); $currentModel = CoinCTocTransfer::findOne($val['id']);
$currentModel->query_result = $query_result; $currentModel->query_result = $query_result;
$currentModel->msg = $msg; $currentModel->msg = $msg;
......
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