This commit is contained in:
aozhiwei 2021-11-29 19:05:33 +08:00
parent d4aa7d5061
commit 020b0aab98

View File

@ -106,3 +106,29 @@ class PropertyChg(object):
self.fields = [
['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'],
]