Commit 39f44bdd authored by shajiaiming's avatar shajiaiming

node update

parent 99f1e87e
...@@ -89,9 +89,9 @@ class Chain33Business ...@@ -89,9 +89,9 @@ class Chain33Business
* @param string $tokenSymbol * @param string $tokenSymbol
* @return array|string * @return array|string
*/ */
public static function transToken($from, $to, $amount, $note = "", $isToken = true, $tokenSymbol = "") public static function transToken($from, $to, $amount, $note = "", $isToken = true, $tokenSymbol = "", $node_params = [])
{ {
$service = new Chain33Service(); $service = new Chain33Service($node_params);
$result = $service->transToken($from, $to, $amount, $note, $isToken, $tokenSymbol); $result = $service->transToken($from, $to, $amount, $note, $isToken, $tokenSymbol);
if ($result['code'] == 0) { if ($result['code'] == 0) {
return $result['result']['hash']; return $result['result']['hash'];
......
...@@ -72,14 +72,16 @@ class ReleaseCheckController extends Controller ...@@ -72,14 +72,16 @@ class ReleaseCheckController extends Controller
$isToken = true; $isToken = true;
} }
$walletpasswd = Yii::$app->redis->get('wallet_passwd'); $walletpasswd = Yii::$app->redis->get('wallet_passwd');
Chain33Business::unLockWallet($walletpasswd); $node_params = Yii::$app->params['chain_parallel']['secondary'];
Chain33Business::unLockWallet($walletpasswd, $node_params);
$result = Chain33Business::transToken( $result = Chain33Business::transToken(
trim($from), trim($from),
trim($coin_release_check->to_address), trim($coin_release_check->to_address),
(int)$coin_release_check->amount, (int)$coin_release_check->amount,
"锁仓释放", "锁仓释放",
$isToken, $isToken,
$coin_release_check->coin $coin_release_check->coin,
$node_params
); );
if (is_array($result)) { if (is_array($result)) {
$isBlockFalse = true; //区块链报错 $isBlockFalse = true; //区块链报错
......
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