This commit is contained in:
songliang 2022-12-06 11:03:13 +08:00
parent 48b05bb88a
commit ece5b6b66e

View File

@ -558,8 +558,13 @@ class MarketController extends BaseController {
't_market_store'
);
$total = count($rows);
$page_end = $start + $page_size;
if ($page_end > $total)
$page_end = $total;
$nfts = array();
foreach ($rows as $row) {
for ($x = $start; $x < $page_end; $x++) {
$row = $rows[$x];
$nftDb = Nft::getNft($row['token_id']);
if (!$nftDb) {
myself()->_rspErr(1, 'nft not exists');