1
This commit is contained in:
parent
020b0aab98
commit
68e52e6a47
14
doc/Shop.py
14
doc/Shop.py
@ -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': '购买英雄',
|
||||||
|
@ -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(原价)'],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user