From 3b66dd9b09a95a1ea2739b1dc77186f5b983d05a Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 19 Jul 2024 16:30:07 +0800 Subject: [PATCH] 1 --- webapp/controller/OutAppNftController.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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: {