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()