diff --git a/webapp/models/Nft.php b/webapp/models/Nft.php index a772bbdd..b58e30a0 100644 --- a/webapp/models/Nft.php +++ b/webapp/models/Nft.php @@ -347,22 +347,6 @@ class Nft extends BaseModel return $nft; } - public static function toNftView($row, &$nftView) - { - $itemMeta = mt\Item::get($row['item_id']); - if ($itemMeta) { - $nftView['name'] = $itemMeta['name']; - $nftView['description'] = getXVal($itemMeta, 'nft_desc', $itemMeta['name']); - $nftView['image'] = 'https://www.cebg.games/res/nfts/' . $itemMeta['id'] . '.png'; - $tags = self::parseTags($row['tags']); - if (in_array(self::GENESIS_TAG, $tags)) { - $nftView['image'] = 'https://www.cebg.games/res/nfts/' . $itemMeta['id'] . '_1' . '.png'; - } - } else { - $nftView['image'] = 'https://www.cebg.games/res/nfts/0.png'; - } - } - // public static function addNftByFragmentBox($itemMeta,$num=0){ // if ($itemMeta) { // $tokenType = Nft::getTokenType($itemMeta);