Commit 3ef61437 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

Feature/optimize See merge request !340
parents aac3320a 7612aede
......@@ -161,11 +161,12 @@ class OrderController extends Controller
//3步交易情况下需要做高度判断,2步交易注释IF判断
if (CoinCTocTransfer::CONSENSUE_YES == $val['consensus'] && true == $switch && isset($height)) {
$last_hash = $result['result']['tx']['hash'];
$service = new Chain33Service($node);
$execer = 'paracross';
$func_name = 'GetTitle';
$playload = [
'data' => 'user.p.'.$val['consensus_platform'] . '.'
'data' => 'user.p.' . $val['consensus_platform'] . '.'
];
$result = $service->chainQuery($execer, $func_name, $playload);
if (!isset($result['result'])) {
......@@ -175,6 +176,19 @@ class OrderController extends Controller
if ($consensHeight < $height) {
continue;
}
$func_name = 'GetAssetTxResult';
$playload = [
'data' => $last_hash
];
$result = $service->chainQuery($execer, $func_name, $playload);
if (!isset($result['result'])) {
continue;
}
$tx_result = $result['result']['success'];
if (false == $tx_result) {
continue;
}
}
$currentModel = CoinCTocTransfer::findOne($val['id']);
$currentModel->query_result = $query_result;
......
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