Commit 3db2739c authored by shajiaiming's avatar shajiaiming

打币确认

parent b75dc2a7
......@@ -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