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