diff --git a/webapp/controller/OutAppNftController.class.php b/webapp/controller/OutAppNftController.class.php index df97a43e..5961b4f6 100644 --- a/webapp/controller/OutAppNftController.class.php +++ b/webapp/controller/OutAppNftController.class.php @@ -154,7 +154,11 @@ class OutAppNftController extends BaseController { "attributes" => array(), ); $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::GCARD_HERO_TYPE: {