This commit is contained in:
aozhiwei 2022-11-07 11:45:25 +08:00
parent b9cd2b292d
commit 886017a96c
2 changed files with 42 additions and 0 deletions

View File

@ -106,5 +106,37 @@ class BlockChain(object):
['trans_id', '', '事务id'],
['!params', [''], '合约参数列表'],
]
},
{
'name': 'pluginChip',
'desc': '装上芯片',
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=pluginChip',
'params': [
['type', 0, '1英雄 2枪械'],
['token_id', '', 'token_id'],
['chip_id', '', '需要装上的chip token_ids多个用|分割'],
],
'response': [
_common.RspHead(),
['trans_id', '', '事务id'],
['!params', [''], '合约参数列表'],
]
},
{
'name': 'unplugChip',
'desc': '卸下芯片',
'group': 'BlockChain',
'url': 'webapp/index.php?c=BlockChain&a=unplugChip',
'params': [
['type', 0, '1英雄 2枪械'],
['token_id', '', 'token_id'],
['chip_ids', '', '需要卸下的chip token_ids多个用|分割'],
],
'response': [
_common.RspHead(),
['trans_id', '', '事务id'],
['!params', [''], '合约参数列表'],
]
}
]

View File

@ -401,6 +401,16 @@ class BlockChainController extends BaseAuthedController {
}
}
public function pluginChip()
{
}
public function unplugChip()
{
}
private function internalActivate721Nft($tokenId, $tokenType, $itemUniId, $itemId)
{
$params = array(