Commit a4f53898 authored by shajiaiming's avatar shajiaiming

fix

parent f4d83f30
......@@ -28,15 +28,15 @@ class IssueCoinController extends BaseController
$chain_id = \Yii::$app->request->get('chain_id', '');
if (1 == $platform_id) {
$query = CoinIssueCoin::find()
->select('id, name, total, status, chain_id, charge_unit_id, charge, platform_id, owner, category, symbol, introduction, create_time')
->select('id, name, total, status, chain_id, charge_unit_id, charge, platform_id, owner, category, type, symbol, introduction, create_time')
->orderBy('create_time desc');
} else {
$query = CoinIssueCoin::find()
->select('id, name, total, status, chain_id, charge_unit_id, charge, platform_id, owner, category, symbol, introduction, create_time')
->select('id, name, total, status, chain_id, charge_unit_id, charge, platform_id, owner, category, type, symbol, introduction, create_time')
->where(['platform_id' => $platform_id])
->orderBy('create_time desc');
}
if ( $status > -1) {
if ($status > -1) {
$query->andWhere(['status' => $status]);
}
......@@ -44,7 +44,7 @@ class IssueCoinController extends BaseController
$query->andWhere(['owner' => $owner]);
}
if(false != $chain_id) {
if (false != $chain_id) {
$query->andWhere(['chain_id' => $chain_id]);
}
......@@ -94,7 +94,7 @@ class IssueCoinController extends BaseController
$data = CoinIssueCoin::find()->where(['id' => $id])->one();
$platform = isset($data->chain->platform) ? $data->chain->platform : '';
$data->total = (int)$data->total * 1e8;
$data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)),'0');
$data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)), '0');
$data->charge_unit = isset($data->gas->coin_name) ? $data->gas->coin_name : '';
$data->url = Yii::$app->redis->hget('platform_brower_info', $platform);
$code = 0;
......
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