diff --git a/doc/Shop.py b/doc/Shop.py index cda23df4..61ed2cf1 100644 --- a/doc/Shop.py +++ b/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], '盲盒列表'], - ] - }, - + } ] diff --git a/webapp/controller/ShopController.class.php b/webapp/controller/ShopController.class.php index f4ef0b19..0aedef26 100644 --- a/webapp/controller/ShopController.class.php +++ b/webapp/controller/ShopController.class.php @@ -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) {