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" => "",
"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);