diff --git a/webapp/controller/OutAppNftController.class.php b/webapp/controller/OutAppNftController.class.php index d46b6c9a..6935ace1 100644 --- a/webapp/controller/OutAppNftController.class.php +++ b/webapp/controller/OutAppNftController.class.php @@ -293,13 +293,13 @@ class OutAppNftController extends BaseController { break; case Nft::GOLD_BULLION_TYPE: { - $itemMeta = \mt\Item::get($nftDb['item_id']); - if ($itemMeta) { + $nftMeta = \mt\NftDesc::getByItemId($nftDb['item_id']); + if ($nftMeta) { $info['meta_url'] = NFT_META_URL . '/gold_bullion/meta/' . $nftDb['net_id'] . '/' . $nftDb['token_id']; - $info['name'] = $itemMeta['name']; - $info['item_id'] = $itemMeta['id']; + $info['name'] = $nftMeta['name']; + $info['item_id'] = $nftMeta['item_id']; $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']); } if ($this->isCloseBox()) {