From 3a9aed342e9518aa2fa6e1b0785de0a75855dc79 Mon Sep 17 00:00:00 2001 From: songliang Date: Fri, 14 Jul 2023 16:48:26 +0800 Subject: [PATCH] ... --- webapp/controller/MarketController.class.php | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) 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;