1
This commit is contained in:
parent
e96a0a8bdb
commit
f39377fd95
@ -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(),
|
||||||
|
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user