...
This commit is contained in:
parent
941c343180
commit
3a9aed342e
@ -474,9 +474,12 @@ class MarketController extends BaseAuthedController
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// $nft_token = getReqVal('nft_token', '');
|
|
||||||
|
|
||||||
$item_id = getReqVal('item_id', '');
|
$item_id = getReqVal('item_id', '');
|
||||||
|
if ($item_id != V_ITEM_GOLD) {
|
||||||
|
$this->_rspErr(1, 'only support gold');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$itemMeta = mt\Item::get($item_id);
|
$itemMeta = mt\Item::get($item_id);
|
||||||
if (!$itemMeta) {
|
if (!$itemMeta) {
|
||||||
$this->_rspErr(1, 'item_id not found');
|
$this->_rspErr(1, 'item_id not found');
|
||||||
@ -505,16 +508,6 @@ class MarketController extends BaseAuthedController
|
|||||||
|
|
||||||
$conn = myself()->_getSelfMysql();
|
$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);
|
$costItems = $this->makeCostItems($item_id, $amount);
|
||||||
$lackItem = null;
|
$lackItem = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user