Commit c1bc9042 authored by shajiaiming's avatar shajiaiming

以万为单位

parent 3d72d072
...@@ -193,7 +193,7 @@ class IssueCoinController extends BaseController ...@@ -193,7 +193,7 @@ class IssueCoinController extends BaseController
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => $size]); $pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => $size]);
foreach ($models as &$val) { foreach ($models as &$val) {
$val->chain_id = $val->chain->platform; $val->chain_id = $val->chain->platform;
$val->total = (int)$val->total * 1e8; $val->total = (int)$val->total * 1e4;
} }
$data = [ $data = [
'list' => $models, 'list' => $models,
...@@ -231,7 +231,7 @@ class IssueCoinController extends BaseController ...@@ -231,7 +231,7 @@ class IssueCoinController extends BaseController
$code = -1; $code = -1;
goto doEnd; goto doEnd;
} }
$data->total = (int)$data->total * 1e8; $data->total = (int)$data->total * 1e4;
$data->chain_name = $data->chain->platform; $data->chain_name = $data->chain->platform;
$data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)), '0'); $data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)), '0');
$code = 0; $code = 0;
......
...@@ -61,7 +61,7 @@ class IssueCoinController extends BaseController ...@@ -61,7 +61,7 @@ class IssueCoinController extends BaseController
$platform = isset($val->chain->platform) ? $val->chain->platform : ''; $platform = isset($val->chain->platform) ? $val->chain->platform : '';
$val->chain_name = $platform; $val->chain_name = $platform;
$val->url = Yii::$app->redis->hget('platform_brower_info', $platform); $val->url = Yii::$app->redis->hget('platform_brower_info', $platform);
$val->total = (int)$val->total * 1e8; $val->total = (int)$val->total * 1e4;
} }
$data = [ $data = [
'list' => $models, 'list' => $models,
...@@ -95,7 +95,7 @@ class IssueCoinController extends BaseController ...@@ -95,7 +95,7 @@ class IssueCoinController extends BaseController
$data = CoinIssueCoin::find()->where(['id' => $id])->one(); $data = CoinIssueCoin::find()->where(['id' => $id])->one();
$platform = isset($data->chain->platform) ? $data->chain->platform : ''; $platform = isset($data->chain->platform) ? $data->chain->platform : '';
$data->total = (int)$data->total * 1e8; $data->total = (int)$data->total * 1e4;
$data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)), '0'); $data->issue_charge = rtrim(sprintf('%.3f', floatval($data->charge)), '0');
$data->url = Yii::$app->redis->hget('platform_brower_info', $platform); $data->url = Yii::$app->redis->hget('platform_brower_info', $platform);
$code = 0; $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