This commit is contained in:
aozhiwei 2023-08-23 13:18:58 +08:00
parent 2d792b5983
commit f4c2b56225

View File

@ -321,6 +321,10 @@ class BlockChainController extends BaseAuthedController {
$rate = 10; $rate = 10;
} }
$jinDu = BlockChainService::getCurrencyDecimals($tokenType); $jinDu = BlockChainService::getCurrencyDecimals($tokenType);
if ($jinDu === false) {
myself()->_rspErr(1, "token_type error");
return;
}
$currency = $tokenType; $currency = $tokenType;
$price = BlockChainService::formatCurrencyEx($num, $jinDu); $price = BlockChainService::formatCurrencyEx($num, $jinDu);