From dc7675cade8e53c3e2865615d66a130102286b35 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Wed, 2 Aug 2023 16:03:08 +0800 Subject: [PATCH] 1 --- webapp/controller/ShopController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index 5ea82668..317b2942 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -185,6 +185,10 @@ class ShopController extends BaseAuthedController { $this->_rspErr(1, 'goods_num is invalid'); return; } + if ($goodsMeta['token_type'] != mt\Shop::TOKEN_TYPE_USD) { + $this->_rspErr(1, 'config error token_type'); + return; + } } public function queryInAppBalance()