Commit fb8f7598 authored by shajiaiming's avatar shajiaiming

调整返回值

parent 73eeae30
......@@ -44,7 +44,6 @@ class IssueChainController extends BaseController
unset($val->introduce);
unset($val->create_time);
unset($val->update_time);
unset($val->chain_id);
}
$msg = 'ok';
......
......@@ -56,7 +56,7 @@ class IssueCoinController extends BaseController
foreach ($models as &$val) {
$platform = isset($val->chain->platform) ? $val->chain->platform : '';
$val->chain_id = $platform;
$val->chain_name = $platform;
$val->charge = isset($val->platform->issue_charge) ? (int)$val->platform->issue_charge : 0;
$val->charge_unit = isset($val->gas->coin_name) ? $val->gas->coin_name : '';
$val->url = Yii::$app->redis->hget('platform_brower_info', $platform);
......
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