From 2cbe0f6d5e05fdeb62008c19f032f32216a2806d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 16:07:01 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 317b2942..2483f5b1 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -189,6 +189,18 @@ class ShopController extends BaseAuthedController { $this->_rspErr(1, 'config error token_type'); return; } + if ($goodsMeta['price'] < 0.0001) { + $this->_rspErr(1, 'config error price'); + return; + } + if (!$fiat != 'USD') { + $this->_rspErr(1, 'paramater error fiat'); + return; + } + if (!$fiatAmount != 'USD') { + $this->_rspErr(1, 'paramater error fiatAmount'); + return; + } } public function queryInAppBalance()