1
This commit is contained in:
parent
7ba0216b57
commit
a81311100b
@ -487,12 +487,23 @@ class UserController extends BaseAuthedController {
|
|||||||
myself()->_rspErr(1, 'item_id not found');
|
myself()->_rspErr(1, 'item_id not found');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if ($itemMeta['type'] == mt\Item::FUNC_TYPE &&
|
||||||
|
in_array($itemMeta['sub_type'],
|
||||||
|
array(
|
||||||
|
mt\Item::LUCKY_SYMBOL_SUBTYPE,
|
||||||
|
mt\Item::BATTLE_POTION_SUBTYPE
|
||||||
|
)
|
||||||
|
)) {
|
||||||
$itemNum = myself()->_callModelStatic('Bag', 'getItemCount', $itemId);
|
$itemNum = myself()->_callModelStatic('Bag', 'getItemCount', $itemId);
|
||||||
myself()->_rspData(array(
|
myself()->_rspData(array(
|
||||||
'item_id' => $itemId,
|
'item_id' => $itemId,
|
||||||
'item_type' => $itemMeta['type'],
|
'item_type' => $itemMeta['type'],
|
||||||
'item_sub_type' => $itemMeta['sub_type']
|
'item_sub_type' => $itemMeta['sub_type']
|
||||||
));
|
));
|
||||||
|
} else {
|
||||||
|
myself()->_rspErr(1, 'item_id not found');
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function query()
|
public function query()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user