Commit 8701540f authored by shajiaiming's avatar shajiaiming

fix

parent 8ad9e715
......@@ -245,9 +245,9 @@ class Chain33Service
public function query()
{
$params = [
"execer" => 'manage',
"funcName" => "GetConfigItem",
"payload" => ['data' => 'token-finisher']
"execer" => 'manage',
"funcName" => "GetConfigItem",
"payload" => ['data' => 'token-finisher']
];
return $this->send($params, 'Chain33.Query');
}
......@@ -419,6 +419,16 @@ class Chain33Service
return $this->send($params, 'Chain33.Query');
}
public function chainQuery($execer, $funcName, $param)
{
$params = [
'execer' => $execer,
'funcName' => $funcName,
'payload' => $param
];
return $this->send($params, 'Chain33.Query');
}
/**
* @param array $hashes
* @return array
......
......@@ -162,11 +162,16 @@ class OrderController extends Controller
//3步交易情况下需要做高度判断,2步交易注释IF判断
if (CoinCTocTransfer::CONSENSUE_YES == $val['consensus'] && true == $switch && isset($height)) {
$service = new Chain33Service($node);
$result = $service->getHeight($val['consensus_platform']);
$execer = 'paracross';
$func_name = 'GetTitle';
$playload = [
'data' => 'user.p.'.$val['consensus_platform'] . '.'
];
$result = $service->chainQuery($execer, $func_name, $playload);
if (!isset($result['result'])) {
continue;
}
$consensHeight = $result['result']['consensHeight'];
$consensHeight = $result['result']['height'];
if ($consensHeight < $height) {
continue;
}
......
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