# -*- coding: utf-8 -*- import _common class Fragment(object): def __init__(self): self.apis = [ { 'name': 'fragmentList', 'desc': '获取碎片列表', 'group': 'Chip', 'url': 'webapp/index.php?c=Fragment&a=fragmentList', 'params': [ _common.ReqHead(), ['type', '', '碎片类型:1 英雄;2 枪械'], ], 'response': [ _common.RspHead(), ['!data', [_common.Fragment()], '芯片列表'] ] },{ 'name': 'syntheticFragmentPreview', 'desc': '碎片合成前', 'group': 'Chip', 'url': 'webapp/index.php?c=Fragment&a=syntheticFragmentPreview', 'params': [ _common.ReqHead(), ['type', '', '类型:1 英雄;2 枪械'], ], 'response': [ _common.RspHead(), ['!list', [], '英雄或枪械id列表'], ['mint', 0, '费用'] ] },{ 'name': 'syntheticFragment', 'desc': '碎片合成', 'group': 'Chip', 'url': 'webapp/index.php?c=Fragment&a=syntheticFragment', 'params': [ _common.ReqHead(), ['type', '', '类型:1 英雄;2 枪械'], ['unique_ids', '', '普通碎片unique id,用“|”分开;例:id1|id2|id3...'], ['unique_id_special', '', '特殊碎片unique id'], ['item_id', '', '英雄或枪械的道具id'], ], 'response': [ _common.RspHead(), ['property_chg', _common.PropertyChg(), '属性变更'], ['item_id', 0, '道具id'] ] }, ]