1
This commit is contained in:
parent
d4aa7d5061
commit
020b0aab98
@ -106,3 +106,29 @@ class PropertyChg(object):
|
|||||||
self.fields = [
|
self.fields = [
|
||||||
['user_info', UserInfo(), '用户信息变更(用来更新本地客户端字段(有则更新无则不变))']
|
['user_info', UserInfo(), '用户信息变更(用来更新本地客户端字段(有则更新无则不变))']
|
||||||
]
|
]
|
||||||
|
|
||||||
|
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(原价)'],
|
||||||
|
['cost_item_num', 0, '购买需要消耗的道具数量(原价)'],
|
||||||
|
['discount_cost_item_id', 0, '购买需要消耗的道具id(实际)'],
|
||||||
|
['discount_cost_item_num', 0, '购买需要消耗的道具数量(免费时为0)(实际)'],
|
||||||
|
['discount_left_time', 0, '折扣剩余时间(单位秒)'],
|
||||||
|
['limit_type', 0, '0:不限购(这时忽略bought_times、total_buy_times) 1:每日限购 2:周限购 3:累计限购'],
|
||||||
|
['bought_times', 0, '已购买次数'],
|
||||||
|
['total_buy_times', 0, '总的可购买次数'],
|
||||||
|
]
|
||||||
|
|
||||||
|
class Shop(object):
|
||||||
|
|
||||||
|
def __init__(self):
|
||||||
|
self.fields = [
|
||||||
|
['!goods_list1', [Goods()], '商品列表1'],
|
||||||
|
['!goods_list2', [Goods()], '商品列表2'],
|
||||||
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user