This commit is contained in:
songliang 2023-01-09 17:46:42 +08:00
parent 535b31ccac
commit a05f062689

View File

@ -827,10 +827,14 @@ class MarketController extends BaseController {
for ($x = $start; $x < $page_end; $x++) { for ($x = $start; $x < $page_end; $x++) {
$row = $rows[$x%$page_size]; $row = $rows[$x%$page_size];
$nftDb = Nft::getNft($row['token_id']); $nftDb = Nft::getNft($row['token_id']);
if (!$nftDb) {
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
// 0x768b5faed6dc69816f33377d214ffaf00dcdd0cf
if (!$nftDb) { if (!$nftDb) {
myself()->_rspErr(1, 'nft not exists'); myself()->_rspErr(1, 'nft not exists');
return; return;
} }
}
$nft = Nft::toDto($nftDb); $nft = Nft::toDto($nftDb);
$row['info'] = $nft; $row['info'] = $nft;
$row['detail'] = $this->getNftGameData($nftDb); $row['detail'] = $this->getNftGameData($nftDb);