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

@ -102,6 +102,19 @@ class Chip(object):
_common.RspHead(), _common.RspHead(),
['!data', [_common.Hero()], '英雄加成信息'] ['!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', 'name': 'selectChip',
'desc': '选择合成材料', 'desc': '选择合成材料',

View File

@ -675,7 +675,20 @@ class ChipPro(object):
def __init__(self): def __init__(self):
self.fields = [ 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()], '芯片升级后的属性'], ['rand_attr_after', [ChipAttr()], '芯片升级后的属性'],
['upgrade_cost', '', '芯片升级所需价值'], ['upgrade_cost', '', '芯片升级所需价值'],
] ]