From 77f1428207babfd41a14e69630429776bf64122f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 17 Apr 2022 22:41:23 +0800 Subject: [PATCH] 1 --- webapp/models/Nft.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/webapp/models/Nft.php b/webapp/models/Nft.php index 10885880..f4af64b8 100644 --- a/webapp/models/Nft.php +++ b/webapp/models/Nft.php @@ -191,6 +191,10 @@ class Nft extends BaseModel { $nftView['name'] = $itemMeta['name']; $nftView['description'] = getXVal($itemMeta, 'nft_desc', $itemMeta['name']); $nftView['image'] = 'https://www.cebg.games/res/avatars/' . $itemMeta['id'] . '.png'; + $tags = self::parseTags($nftDb['tags']); + if (in_array(self::GENESIS_TAG, $tags)) { + $image = 'https://www.cebg.games/res/avatars/' . $itemMeta['id'] . '_1' . '.png'; + } } else { $nftView['image'] = 'https://www.cebg.games/res/avatars/0.png'; }