This commit is contained in:
aozhiwei 2024-07-19 16:30:07 +08:00
parent 1db84e2c3f
commit 3b66dd9b09

View File

@ -154,7 +154,11 @@ class OutAppNftController extends BaseController {
"attributes" => array(), "attributes" => array(),
); );
$nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId); $nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId);
switch ($tokenType) { if (empty($nftDb)) {
echo json_encode($info);
die;
}
switch ($nftDb['token_type']) {
case Nft::HERO_TYPE: case Nft::HERO_TYPE:
case Nft::GCARD_HERO_TYPE: case Nft::GCARD_HERO_TYPE:
{ {