diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index d7a4b1b7..439ad24a 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -474,9 +474,12 @@ class MarketController extends BaseAuthedController return; } - // $nft_token = getReqVal('nft_token', ''); - $item_id = getReqVal('item_id', ''); + if ($item_id != V_ITEM_GOLD) { + $this->_rspErr(1, 'only support gold'); + return; + } + $itemMeta = mt\Item::get($item_id); if (!$itemMeta) { $this->_rspErr(1, 'item_id not found'); @@ -505,16 +508,6 @@ class MarketController extends BaseAuthedController $conn = myself()->_getSelfMysql(); - $nftDb = null; - - $c_name = null; - $c_job = null; - $c_lv = null; - $c_quality = null; - $c_durability = null; - $c_type = null; - $c_id = null; - // 检查是否有足够的物品 $costItems = $this->makeCostItems($item_id, $amount); $lackItem = null;