Commit 296c448f authored by shajiaiming's avatar shajiaiming

节点变更

parent 8d5dcd7a
...@@ -92,20 +92,21 @@ class CrossChainController extends Controller ...@@ -92,20 +92,21 @@ class CrossChainController extends Controller
return 0; return 0;
} }
// 正式环境查询共识高度 //正式环境查询共识高度
// $node_params = [ //3步交易情况下需要做高度判断,2步交易无须判断
// 'scheme' => 'https',
// 'host' => 'jiedian1.bityuan.com',
// 'port' => 8801
// ];
//测试环境查询共识高度
//3步交易情况下需要做高度判断,2步交易注释IF判断
$node_params = [ $node_params = [
'scheme' => 'http', 'scheme' => 'https',
'host' => '172.16.100.77', 'host' => 'jiedian1.bityuan.com',
'port' => 8801 'port' => 8801
]; ];
//测试环境查询共识高度
//2步交易情况下需要做高度判断
// $node_params = [
// 'scheme' => 'http',
// 'host' => '172.16.100.77',
// 'port' => 8801
// ];
$service = new Chain33Service($node_params); $service = new Chain33Service($node_params);
$result = $service->getHeight(); $result = $service->getHeight();
$consensHeight = $result['result']['consensHeight']; $consensHeight = $result['result']['consensHeight'];
...@@ -167,10 +168,9 @@ class CrossChainController extends Controller ...@@ -167,10 +168,9 @@ class CrossChainController extends Controller
doEnd : doEnd :
//3步交易情况下需要做高度判断,2步交易注释IF判断 //3步交易情况下需要做高度判断,2步交易注释IF判断
if (CoinCrossChain::RECHARGE == $val['is_with_draw'] && $val['step'] == 2 && $switch && isset($height) && ($consensHeight < $height)) { if (CoinCrossChain::RECHARGE == (int)$val['is_with_draw'] && 2 == (int)$val['step'] && true == $switch && isset($height) && ($consensHeight < $height)) {
continue; continue;
} }
$currentModel = CoinCrossChain::findOne($val['id']); $currentModel = CoinCrossChain::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