From 117da727f67499d29348585c0643bace6a6b1377 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Nov 2022 12:38:49 +0800 Subject: [PATCH] 1 --- doc/BlockChain.py | 21 ++++++++++++++++--- .../controller/BlockChainController.class.php | 7 ++++++- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/doc/BlockChain.py b/doc/BlockChain.py index e60dda40..1cde4732 100644 --- a/doc/BlockChain.py +++ b/doc/BlockChain.py @@ -108,10 +108,10 @@ class BlockChain(object): ] }, { - 'name': 'pluginChip', - 'desc': '装上芯片', + 'name': 'pluginChipOne', + 'desc': '装上一个芯片', 'group': 'BlockChain', - 'url': 'webapp/index.php?c=BlockChain&a=pluginChip', + 'url': 'webapp/index.php?c=BlockChain&a=pluginChipOne', 'params': [ ['type', 0, '1:英雄 2:枪械'], ['token_id', '', 'token_id'], @@ -123,6 +123,21 @@ class BlockChain(object): ['!params', [''], '合约参数列表'], ] }, + { + 'name': 'pluginChipBatch', + 'desc': '批量装上芯片', + 'group': 'BlockChain', + 'url': 'webapp/index.php?c=BlockChain&a=pluginChipBatch', + 'params': [ + ['type', 0, '1:英雄 2:枪械'], + ['token_id', '', 'token_id'], + ], + 'response': [ + _common.RspHead(), + ['trans_id', '', '事务id'], + ['!params', [''], '合约参数列表'], + ] + }, { 'name': 'unplugChip', 'desc': '卸下芯片', diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index 99ae6146..103d0b3d 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -401,7 +401,12 @@ class BlockChainController extends BaseAuthedController { } } - public function pluginChip() + public function pluginChipOne() + { + + } + + public function pluginChipBatch() { }