This commit is contained in:
aozhiwei 2023-08-07 10:13:01 +08:00
parent f59e404a1a
commit 8ab104b701

View File

@ -211,12 +211,7 @@ class MarketController extends BaseAuthedController {
); );
$nftDb = Nft::getNft($row['token_id']); $nftDb = Nft::getNft($row['token_id']);
if ($nftDb) { if ($nftDb) {
if ($nftDb['token_type'] == Nft::HERO_TYPE) { $nftDb['detail'] = Nft::toDto($nftDb);
$heroDb = Hero::findByTokenId2($nftDb['token_id']);
if ($heroDb) {
$info['detail'] = Hero::toDtoInfo($heroDb);
}
}
} }
return $info; return $info;
} }