From f39377fd95bba0bb41c840f052b55dcf0329f2cb Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 8 Nov 2022 12:46:08 +0800 Subject: [PATCH] 1 --- doc/BlockChain.py | 2 ++ webapp/controller/BlockChainController.class.php | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/doc/BlockChain.py b/doc/BlockChain.py index 08833fbf..444dc53e 100644 --- a/doc/BlockChain.py +++ b/doc/BlockChain.py @@ -116,6 +116,7 @@ class BlockChain(object): ['type', 0, '1:英雄 2:枪械'], ['token_id', '', 'token_id'], ['chip_ids', '', '需要卸下的chip token_ids多个用|分割'], + ['slot_ids', '', '槽位0-3多个用|分割'], ], 'response': [ _common.RspHead(), @@ -132,6 +133,7 @@ class BlockChain(object): ['type', 0, '1:英雄 2:枪械'], ['token_id', '', 'token_id'], ['chip_ids', '', '需要卸下的chip token_ids多个用|分割'], + ['slot_ids', '', '槽位0-3多个用|分割'], ], 'response': [ _common.RspHead(), diff --git a/webapp/controller/BlockChainController.class.php b/webapp/controller/BlockChainController.class.php index 80bdd6d4..57dc8f18 100644 --- a/webapp/controller/BlockChainController.class.php +++ b/webapp/controller/BlockChainController.class.php @@ -405,6 +405,8 @@ class BlockChainController extends BaseAuthedController { { $type = getReqVal('type', ''); $tokenId = getReqVal('token_id', ''); + $chipIds = explode('|', getReqVal('chip_ids', '')); + $slotIds = explode('|', getReqVal('slot_ids', '')); switch ($type) { case 1: @@ -429,8 +431,8 @@ class BlockChainController extends BaseAuthedController { 'account_id' => myself()->_getAccountId(), 'session_id' => myself()->_getSessionId(), 'account' => myself()->_getOpenId(), - 'type' => $type, 'token_id' => $tokenId, + 'token_type' => Nft::HERO_TYPE, 'chip_ids' => implode('|', $chipIds) ), array( @@ -466,8 +468,8 @@ class BlockChainController extends BaseAuthedController { 'account_id' => myself()->_getAccountId(), 'session_id' => myself()->_getSessionId(), 'account' => myself()->_getOpenId(), - 'type' => $type, 'token_id' => $tokenId, + 'token_type' => Nft::HERO_TYPE, 'chip_ids' => implode('|', $chipIds) ), array(