This commit is contained in:
aozhiwei 2024-06-28 20:48:53 +08:00
parent 7c494318bb
commit b3e09a8b14

View File

@ -293,13 +293,13 @@ class OutAppNftController extends BaseController {
break; break;
case Nft::GOLD_BULLION_TYPE: case Nft::GOLD_BULLION_TYPE:
{ {
$itemMeta = \mt\Item::get($nftDb['item_id']); $nftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']);
if ($itemMeta) { if ($nftMeta) {
$info['meta_url'] = NFT_META_URL . '/gold_bullion/meta/' . $nftDb['net_id'] . '/' . $nftDb['token_id']; $info['meta_url'] = NFT_META_URL . '/gold_bullion/meta/' . $nftDb['net_id'] . '/' . $nftDb['token_id'];
$info['name'] = $itemMeta['name']; $info['name'] = $nftMeta['name'];
$info['item_id'] = $itemMeta['id']; $info['item_id'] = $nftMeta['item_id'];
$info['type'] = $nftDb['token_type']; $info['type'] = $nftDb['token_type'];
$info['image'] = 'https://res2.counterfire.games/nft/meta/' . $itemMeta['id'] . '.png'; $info['image'] = 'https://res2.counterfire.games/nft/meta/' . $nftMeta['item_id'] . '.png';
$info['detail']['gold_coins'] = $this->getGoldBullionGoldNum($nftDb['item_id']); $info['detail']['gold_coins'] = $this->getGoldBullionGoldNum($nftDb['item_id']);
} }
if ($this->isCloseBox()) { if ($this->isCloseBox()) {