From f4c2b5622505af9f0c6fc26f443ed655612415fc Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 23 Aug 2023 13:18:58 +0800 Subject: [PATCH] 1 --- webapp/controller/BlockChainController.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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);