This commit is contained in:
aozhiwei 2024-07-18 20:47:15 +08:00
parent 443ccb88a6
commit c49f7ed3b1

View File

@ -156,6 +156,7 @@ class OutAppNftController extends BaseController {
$nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId); $nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId);
switch ($tokenType) { switch ($tokenType) {
case Nft::HERO_TYPE: case Nft::HERO_TYPE:
case Nft::GCARD_HERO_TYPE:
{ {
$heroDb = Hero::findByTokenId2($tokenId); $heroDb = Hero::findByTokenId2($tokenId);
if (!$heroDb){ if (!$heroDb){
@ -300,6 +301,7 @@ class OutAppNftController extends BaseController {
$info['owner_address'] = $nftDb['owner_address']; $info['owner_address'] = $nftDb['owner_address'];
switch ($nftDb['token_type']) { switch ($nftDb['token_type']) {
case Nft::HERO_TYPE: case Nft::HERO_TYPE:
case Nft::GCARD_HERO_TYPE:
{ {
$heroDb = Hero::findByTokenId2($nftDb['token_id']); $heroDb = Hero::findByTokenId2($nftDb['token_id']);
if ($heroDb) { if ($heroDb) {
@ -350,6 +352,7 @@ class OutAppNftController extends BaseController {
$this->fillBoxDetail($info); $this->fillBoxDetail($info);
} }
} }
break;
case Nft::FOUNDER_TAG_TYPE: case Nft::FOUNDER_TAG_TYPE:
{ {
$info['meta_url'] = 'https://nftmint.counterfire.games/nft/202403/' . $nftDb['token_id']; $info['meta_url'] = 'https://nftmint.counterfire.games/nft/202403/' . $nftDb['token_id'];