diff --git a/webapp/controller/OutAppNftController.class.php b/webapp/controller/OutAppNftController.class.php index 5ca20249..26a6e83f 100644 --- a/webapp/controller/OutAppNftController.class.php +++ b/webapp/controller/OutAppNftController.class.php @@ -142,6 +142,7 @@ class OutAppNftController extends BaseController { "image" => "", "attributes" => array(), ); + $nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId); switch ($tokenType) { case Nft::HERO_TYPE: { @@ -163,6 +164,15 @@ class OutAppNftController extends BaseController { )); } break; + case Nft::GOLD_BULLION_TYPE: + { + $NftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']); + //https://www.cebg.games/res/nfts/30100.png + //$info['name'] = $heroMeta['name']; + $info['description'] = $NftMeta['desc']; + $info['image'] = "https://www.cebg.games/res/nfts/".$nftDb['item_id'].".png"; + } + break; } error_log(json_encode($info)); myself()->_rspData($info);