This commit is contained in:
aozhiwei 2022-11-08 12:46:08 +08:00
parent e96a0a8bdb
commit f39377fd95
2 changed files with 6 additions and 2 deletions

View File

@ -116,6 +116,7 @@ class BlockChain(object):
['type', 0, '1英雄 2枪械'], ['type', 0, '1英雄 2枪械'],
['token_id', '', 'token_id'], ['token_id', '', 'token_id'],
['chip_ids', '', '需要卸下的chip token_ids多个用|分割'], ['chip_ids', '', '需要卸下的chip token_ids多个用|分割'],
['slot_ids', '', '槽位0-3多个用|分割'],
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
@ -132,6 +133,7 @@ class BlockChain(object):
['type', 0, '1英雄 2枪械'], ['type', 0, '1英雄 2枪械'],
['token_id', '', 'token_id'], ['token_id', '', 'token_id'],
['chip_ids', '', '需要卸下的chip token_ids多个用|分割'], ['chip_ids', '', '需要卸下的chip token_ids多个用|分割'],
['slot_ids', '', '槽位0-3多个用|分割'],
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),

View File

@ -405,6 +405,8 @@ class BlockChainController extends BaseAuthedController {
{ {
$type = getReqVal('type', ''); $type = getReqVal('type', '');
$tokenId = getReqVal('token_id', ''); $tokenId = getReqVal('token_id', '');
$chipIds = explode('|', getReqVal('chip_ids', ''));
$slotIds = explode('|', getReqVal('slot_ids', ''));
switch ($type) { switch ($type) {
case 1: case 1:
@ -429,8 +431,8 @@ class BlockChainController extends BaseAuthedController {
'account_id' => myself()->_getAccountId(), 'account_id' => myself()->_getAccountId(),
'session_id' => myself()->_getSessionId(), 'session_id' => myself()->_getSessionId(),
'account' => myself()->_getOpenId(), 'account' => myself()->_getOpenId(),
'type' => $type,
'token_id' => $tokenId, 'token_id' => $tokenId,
'token_type' => Nft::HERO_TYPE,
'chip_ids' => implode('|', $chipIds) 'chip_ids' => implode('|', $chipIds)
), ),
array( array(
@ -466,8 +468,8 @@ class BlockChainController extends BaseAuthedController {
'account_id' => myself()->_getAccountId(), 'account_id' => myself()->_getAccountId(),
'session_id' => myself()->_getSessionId(), 'session_id' => myself()->_getSessionId(),
'account' => myself()->_getOpenId(), 'account' => myself()->_getOpenId(),
'type' => $type,
'token_id' => $tokenId, 'token_id' => $tokenId,
'token_type' => Nft::HERO_TYPE,
'chip_ids' => implode('|', $chipIds) 'chip_ids' => implode('|', $chipIds)
), ),
array( array(