diff --git a/doc/BlockChain.py b/doc/BlockChain.py index 9d3e89a9..e60dda40 100644 --- a/doc/BlockChain.py +++ b/doc/BlockChain.py @@ -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', [''], '合约参数列表'], + ] } ] diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index b784738d..99ae6146 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -401,6 +401,16 @@ class BlockChainController extends BaseAuthedController { } } + public function pluginChip() + { + + } + + public function unplugChip() + { + + } + private function internalActivate721Nft($tokenId, $tokenType, $itemUniId, $itemId) { $params = array(