From 491d518bbc88febb3ecb4cf99ee57c3b26f831d6 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 16:56:44 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 2c1df301..7d897ef5 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -182,7 +182,7 @@ class ShopController extends BaseAuthedController { return; } if ($goodsMeta['shop_id'] != mt\Shop::OUTAPP_SHOP) { - $this->_rspErr(1, 'goods_num is invalid'); + $this->_rspErr(1, 'config error shop_id'); return; } if ($goodsMeta['token_type'] != mt\Shop::TOKEN_TYPE_USD) { @@ -193,11 +193,11 @@ class ShopController extends BaseAuthedController { $this->_rspErr(1, 'config error price'); return; } - if (!$fiat != 'USD') { + if ($fiat != 'USD') { $this->_rspErr(1, 'paramater error fiat'); return; } - if (!$fiatAmount + 0.00001 < $goodsMeta['price']) { + if ($fiatAmount + 0.00001 < $goodsMeta['price']) { $this->_rspErr(1, 'paramater error fiatAmount'); return; }