This commit is contained in:
aozhiwei 2021-11-29 19:23:17 +08:00
parent 020b0aab98
commit 68e52e6a47
2 changed files with 16 additions and 6 deletions

View File

@ -6,6 +6,20 @@ class Shop(object):
def __init__(self): def __init__(self):
self.apis = [ 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', 'name': 'buy',
'desc': '购买英雄', 'desc': '购买英雄',

View File

@ -86,11 +86,8 @@ class AwardItem(object):
def __init__(self): def __init__(self):
self.fields = [ self.fields = [
['type', 0, '奖励类型 1:道具 2:英雄 3:英雄皮肤 4枪械皮肤'], ['item_id', 0, '道具id'],
['union_1', Item(), '道具'], ['item_num', 0, '道具数量'],
['union_2', Hero(), '英雄'],
['union_3', HeroSkin(), '英雄皮肤'],
['union_4', GunSkin(), '枪械皮肤'],
] ]
class Award(object): class Award(object):
@ -112,7 +109,6 @@ class Goods(object):
def __init__(self): def __init__(self):
self.fields = [ self.fields = [
['goods_id', 0, '商品id 用于购买的时候回传'], ['goods_id', 0, '商品id 用于购买的时候回传'],
['type', 0, '商品类型 1:道具 2:英雄 3:英雄皮肤 4枪械皮肤'],
['item_id', 0, '配置表id'], ['item_id', 0, '配置表id'],
['flag_icon', '', '商品标记(商品左上角的显示图标,超值、9折等)'], ['flag_icon', '', '商品标记(商品左上角的显示图标,超值、9折等)'],
['cost_item_id', 0, '购买需要消耗的道具id(原价)'], ['cost_item_id', 0, '购买需要消耗的道具id(原价)'],