Commit c5a9ccb8 authored by shajiaiming's avatar shajiaiming

fix

parent 4e449dd3
......@@ -204,13 +204,13 @@ class IssueChainController extends BaseController
foreach ($platform as $val) {
$val->tokens = [];
$symbol = [];
if (!empty($val->exer)) {
$node = Yii::$app->params['chain_nodes'][strtoupper($val->platform)];
$service = new Chain33Service($node);
$funcName = 'GetTokens';
$result = $service->getTokens($val->exer, $funcName);
if (isset($result['code']) && 0 == $result['code']) {
$symbol = [];
foreach ($result['result']['tokens'] as $temp) {
$symbol[] = $temp['symbol'];
}
......
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