diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index e9bd5012..3b1e811e 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -321,6 +321,10 @@ class BlockChainController extends BaseAuthedController { $rate = 10; } $jinDu = BlockChainService::getCurrencyDecimals($tokenType); + if ($jinDu === false) { + myself()->_rspErr(1, "token_type error"); + return; + } $currency = $tokenType; $price = BlockChainService::formatCurrencyEx($num, $jinDu);