From a05c8ca8c769a9bf3cb54757bc9e9839d5100941 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 22 Jun 2024 17:47:15 +0800 Subject: [PATCH] 1 --- webapp/controller/OutAppNftController.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/controller/OutAppNftController.class.php b/webapp/controller/OutAppNftController.class.php index efeafe9c..5ca20249 100644 --- a/webapp/controller/OutAppNftController.class.php +++ b/webapp/controller/OutAppNftController.class.php @@ -133,8 +133,8 @@ class OutAppNftController extends BaseController { public function nftMetaView() { - $nftType = getReqVal('nft_type', ''); $netId = getReqVal('net_id', ''); + $tokenType = getReqVal('token_type', ''); $tokenId = getReqVal('token_id', ''); $info = array( "name" => "", @@ -142,8 +142,8 @@ class OutAppNftController extends BaseController { "image" => "", "attributes" => array(), ); - switch ($nftType) { - case 'hero': + switch ($tokenType) { + case Nft::HERO_TYPE: { $heroDb = Hero::findByTokenId2($tokenId); if (!$heroDb){