From 8ab104b70134ac02e58f18b3eeb5335195d74f2b Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 7 Aug 2023 10:13:01 +0800 Subject: [PATCH] 1 --- webapp/controller/MarketController.class.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/webapp/controller/MarketController.class.php b/webapp/controller/MarketController.class.php index 05d72edf..ede73a00 100644 --- a/webapp/controller/MarketController.class.php +++ b/webapp/controller/MarketController.class.php @@ -211,12 +211,7 @@ class MarketController extends BaseAuthedController { ); $nftDb = Nft::getNft($row['token_id']); if ($nftDb) { - if ($nftDb['token_type'] == Nft::HERO_TYPE) { - $heroDb = Hero::findByTokenId2($nftDb['token_id']); - if ($heroDb) { - $info['detail'] = Hero::toDtoInfo($heroDb); - } - } + $nftDb['detail'] = Nft::toDto($nftDb); } return $info; }