remove Shop controller openBlindBox getMyBlindBoxs interface
This commit is contained in:
parent
2c9f1d6c43
commit
1262c64eaa
31
doc/Shop.py
31
doc/Shop.py
@ -2,7 +2,6 @@
|
||||
|
||||
import _common
|
||||
|
||||
|
||||
class Shop(object):
|
||||
|
||||
def __init__(self):
|
||||
@ -252,33 +251,5 @@ class Shop(object):
|
||||
['free_num', 0, '免费次数'],
|
||||
['pending', 0, '购买中...'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'openBlindBox',
|
||||
'desc': '打开盲盒',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=openBlindBox',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
['item_id', 0, '宝箱物品id item_id'],
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!items', [_common.BlindBoxResult()], '宝箱物品列表'],
|
||||
]
|
||||
},
|
||||
{
|
||||
'name': 'getMyBlindBoxs',
|
||||
'desc': '获取我的盲盒列表',
|
||||
'group': 'Shop',
|
||||
'url': 'webapp/index.php?c=Shop&a=getMyBlindBoxs',
|
||||
'params': [
|
||||
_common.ReqHead(),
|
||||
],
|
||||
'response': [
|
||||
_common.RspHead(),
|
||||
['!items', [0], '盲盒列表'],
|
||||
]
|
||||
},
|
||||
|
||||
}
|
||||
]
|
||||
|
@ -1405,22 +1405,6 @@ class ShopController extends BaseAuthedController
|
||||
);
|
||||
}
|
||||
|
||||
private function getMyBlindBoxs()
|
||||
{
|
||||
|
||||
$itemDb = Bag::getAllByType(mt\Item::CHEST_BOX_TYPE);
|
||||
$items = array();
|
||||
foreach ($itemDb as $key => $value) {
|
||||
array_push($items, $value['item_id']);
|
||||
}
|
||||
|
||||
$this->_rspData(
|
||||
array(
|
||||
'items' => $items,
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
private function getCostItemIdByTokenType($token_type)
|
||||
{
|
||||
switch ($token_type) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user