This commit is contained in:
aozhiwei 2024-06-22 17:59:28 +08:00
parent a05c8ca8c7
commit c65a2f2414

View File

@ -142,6 +142,7 @@ class OutAppNftController extends BaseController {
"image" => "", "image" => "",
"attributes" => array(), "attributes" => array(),
); );
$nftDb = Nft::getNftByNetIdTokenTypeTokenId($netId, $tokenType, $tokenId);
switch ($tokenType) { switch ($tokenType) {
case Nft::HERO_TYPE: case Nft::HERO_TYPE:
{ {
@ -163,6 +164,15 @@ class OutAppNftController extends BaseController {
)); ));
} }
break; 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)); error_log(json_encode($info));
myself()->_rspData($info); myself()->_rspData($info);