Commit 5bd6f593 authored by shajiaming's avatar shajiaming

fix

parent 8a4de379
......@@ -227,7 +227,7 @@ class IssueCoinController extends BaseController
$pages = new Pagination(['totalCount' => $countQuery->count(), 'pageSize' => $size]);
foreach ($models as &$val) {
$val->chain_id = $val->chain->platform;
if (0 != $val->token_type) {
if (0 == $val->token_type) {
$val->total = (int)$val->total * 1e4;
}
}
......@@ -267,7 +267,7 @@ class IssueCoinController extends BaseController
$code = -1;
goto doEnd;
}
if (0 != $data->token_type) {
if (0 == $data->token_type) {
$data->total = (int)$data->total * 1e4;
}
$data->chain_name = $data->chain->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