diff --git a/doc/Shop.py b/doc/Shop.py index 91a56d5..bfd33f4 100644 --- a/doc/Shop.py +++ b/doc/Shop.py @@ -6,6 +6,20 @@ class Shop(object): def __init__(self): self.apis = [ + { + 'name': 'info', + 'desc': '获取商店信息', + 'group': 'Shop', + 'url': 'webapp/index.php?c=Shop&a=info', + 'params': [ + _common.ReqHead(), + ['shop_id', '', '商店id'], + ], + 'response': [ + _common.RspHead(), + ['info', _common.Shop(), '商店信息'], + ] + }, { 'name': 'buy', 'desc': '购买英雄', diff --git a/doc/_common.py b/doc/_common.py index 8eab94e..2cd051e 100644 --- a/doc/_common.py +++ b/doc/_common.py @@ -86,11 +86,8 @@ class AwardItem(object): def __init__(self): self.fields = [ - ['type', 0, '奖励类型 1:道具 2:英雄 3:英雄皮肤 4:枪械皮肤'], - ['union_1', Item(), '道具'], - ['union_2', Hero(), '英雄'], - ['union_3', HeroSkin(), '英雄皮肤'], - ['union_4', GunSkin(), '枪械皮肤'], + ['item_id', 0, '道具id'], + ['item_num', 0, '道具数量'], ] class Award(object): @@ -112,7 +109,6 @@ class Goods(object): def __init__(self): self.fields = [ ['goods_id', 0, '商品id 用于购买的时候回传'], - ['type', 0, '商品类型 1:道具 2:英雄 3:英雄皮肤 4:枪械皮肤'], ['item_id', 0, '配置表id'], ['flag_icon', '', '商品标记(商品左上角的显示图标,超值、9折等)'], ['cost_item_id', 0, '购买需要消耗的道具id(原价)'],