1
This commit is contained in:
parent
87934df605
commit
7ba0216b57
@ -479,6 +479,22 @@ class UserController extends BaseAuthedController {
|
||||
));
|
||||
}
|
||||
|
||||
public function getBattleItem()
|
||||
{
|
||||
$itemId = getReqVal("item_id", "");
|
||||
$itemMeta = mt\Item::get($itemId);
|
||||
if (empty($itemMeta)) {
|
||||
myself()->_rspErr(1, 'item_id not found');
|
||||
return;
|
||||
}
|
||||
$itemNum = myself()->_callModelStatic('Bag', 'getItemCount', $itemId);
|
||||
myself()->_rspData(array(
|
||||
'item_id' => $itemId,
|
||||
'item_type' => $itemMeta['type'],
|
||||
'item_sub_type' => $itemMeta['sub_type']
|
||||
));
|
||||
}
|
||||
|
||||
public function query()
|
||||
{
|
||||
$name = getReqVal('name', '');
|
||||
|
Loading…
x
Reference in New Issue
Block a user