add doc 10

This commit is contained in:
hujiabin 2022-08-18 19:23:42 +08:00
parent 01acb062ca
commit 050bf36f5e
2 changed files with 68 additions and 42 deletions

View File

@ -89,47 +89,60 @@ class Chip(object):
_common.RspHead(),
['!data', [_common.Hero()], '英雄加成信息']
]
} ,{
'name': 'aKeyInlayChip',
'desc': '芯片一键镶嵌',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=aKeyInlayChip',
'params': [
_common.ReqHead(),
['hero_id', '', '英雄idx'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄加成信息']
]
},{
'name': 'selectChip',
'desc': '选择合成材料',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=selectChip',
'params': [
_common.ReqHead(),
['token_id', '', '芯片token id参数 例参数1源芯片 参数2材料芯片'],
],
'response': [
_common.RspHead(),
['data', '', '材料芯片的累计价值']
]
},{
'name': 'syntheticChip',
'desc': '芯片合成',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=syntheticChip',
'params': [
_common.ReqHead(),
['token_id_main', '', '源芯片token id'],
['token_id_param', '', '材料芯片token id 例参数1 参数2 参数3'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片信息']
]
},
},{
'name': 'aKeyInlayChip',
'desc': '芯片一键镶嵌',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=aKeyInlayChip',
'params': [
_common.ReqHead(),
['hero_id', '', '英雄idx'],
],
'response': [
_common.RspHead(),
['!data', [_common.Hero()], '英雄加成信息']
]
},{
'name': 'beforeSynthetic',
'desc': '芯片合成前置操作',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=beforeSynthetic',
'params': [
_common.ReqHead(),
['token_id', '', '新芯片token id'],
],
'response': [
_common.RspHead(),
['!data', [_common.ChipPro()], '芯片信息']
]
},{
'name': 'selectChip',
'desc': '选择合成材料',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=selectChip',
'params': [
_common.ReqHead(),
['token_id', '', '芯片token id参数 例参数1源芯片 参数2材料芯片'],
],
'response': [
_common.RspHead(),
['data', '', '材料芯片的累计价值']
]
},{
'name': 'syntheticChip',
'desc': '芯片合成',
'group': 'Chip',
'url': 'webapp/index.php?c=Chip&a=syntheticChip',
'params': [
_common.ReqHead(),
['token_id_main', '', '源芯片token id'],
['token_id_param', '', '材料芯片token id 例参数1 参数2 参数3'],
],
'response': [
_common.RspHead(),
['!data', [_common.Chip()], '芯片信息']
]
},
]

View File

@ -675,7 +675,20 @@ class ChipPro(object):
def __init__(self):
self.fields = [
Chip(),
['idx', 0, '主键id'],
['token_id', '', 'token id'],
['account_id', '', '账号id'],
['item_id', 0, '道具id'],
['item_num', 0, '道具数量'],
['chip_grade', 0, '芯片等级'],
['chip_type', 0, '芯片类型1 英雄2 枪械'],
['state', 0, '芯片添加状态:0 正常;1 选择;-1 锁定'],
['supper_state', 0, '是否锁定0 正常;1 锁住'],
['inlay_state', 0, '镶嵌状态0 未镶嵌;1 镶嵌了'],
['!rand_attr', [ChipAttr()], '属性'],
['lucky_temporary', '', '临时幸运值'],
['lucky_final', '', '最终幸运值'],
['strength', '', '体力值'],
['rand_attr_after', [ChipAttr()], '芯片升级后的属性'],
['upgrade_cost', '', '芯片升级所需价值'],
]