1
This commit is contained in:
parent
c6e3cac572
commit
b45a1d1327
@ -156,7 +156,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
{
|
||||
$nft1 = Hero::findByTokenId($tokenId1);
|
||||
$nft2 = Hero::findByTokenId($tokenId2);
|
||||
if (!$nft1 || $nft2) {
|
||||
if (!$nft1 || !$nft2) {
|
||||
myself()->_rspErr(1, 'token paramater error');
|
||||
return;
|
||||
}
|
||||
@ -174,7 +174,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
array(
|
||||
'action' => Transaction::EVOLVE_721_ACTION_TYPE,
|
||||
'tokenId' => $nft1['token_id'],
|
||||
'itemType' => $type,
|
||||
'tokenType' => Nft::HERO_TYPE,
|
||||
'itemUniId' => $nft1['hero_uniid'],
|
||||
'itemId' => $nft1['hero_id']
|
||||
)
|
||||
@ -185,7 +185,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
{
|
||||
$nft1 = Gun::findByTokenId($tokenId1);
|
||||
$nft2 = Gun::findByTokenId($tokenId2);
|
||||
if (!$nft1 || $nft2) {
|
||||
if (!$nft1 || !$nft2) {
|
||||
myself()->_rspErr(1, 'token paramater error');
|
||||
return;
|
||||
}
|
||||
@ -203,7 +203,7 @@ class BlockChainController extends BaseAuthedController {
|
||||
array(
|
||||
'action' => Transaction::EVOLVE_721_ACTION_TYPE,
|
||||
'tokenId' => $nft1['token_id'],
|
||||
'itemType' => $type,
|
||||
'tokenType' => Nft::GUN_TYPE,
|
||||
'itemUniId' => $nft1['gun_uniid'],
|
||||
'itemId' => $nft1['gun_id']
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user