remove toNftView
This commit is contained in:
parent
faf2ffca5c
commit
a5ff30af8b
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user