Commit e2789c7b authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/trade-node' into 'master'

打币确认 See merge request !23
parents 1a1edc91 3db2739c
......@@ -255,9 +255,9 @@ class Chain33Business
* @param array $hashes
* @return array
*/
public static function getTxByHashs($hashes)
public static function getTxByHashs($hashes, $node_params = [])
{
$service = new Chain33Service();
$service = new Chain33Service($node_params);
return $service->getTxByHashes($hashes);
}
......
......@@ -124,7 +124,8 @@ class ReleaseCheckController extends Controller
foreach($coin_release_checkItems as $coin_release_check){
$coin_release_list = CoinReleaseList::findOne($coin_release_check->list_id);
if ($coin_release_list) {
$result = Chain33Business::getTxByHashs([$coin_release_check->txhash]);
$node_params = Yii::$app->params['chain_parallel']['secondary'];
$result = Chain33Business::getTxByHashs([$coin_release_check->txhash], $node_params);
if ($result['code'] == 0) {
$result = $result['result']['txs'][0]['receipt']['ty'] ?? 0;
if ($result == 1) {
......
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