From b3e09a8b1487256db36203e241c8d623f4b79890 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 28 Jun 2024 20:48:53 +0800 Subject: [PATCH] 1 --- webapp/controller/OutAppNftController.class.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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()) {