This commit is contained in:
aozhiwei 2022-12-12 17:56:42 +08:00
parent b5642b2b70
commit caf75579b9
2 changed files with 3 additions and 1 deletions

View File

@ -643,6 +643,7 @@ class MarketController extends BaseController {
break;
case Nft::FRAGMENT_TYPE: {
$rows = Nft::getNft1155List($account, $type);
error_log("fragment:".json_encode($rows)."type=".$type."account=".$account);
usort($nfts, $sortByTokenId);
$nfts = $rows;
}
@ -691,6 +692,7 @@ class MarketController extends BaseController {
}
$nfts = array();
for ($x = $start; $x < $page_end; $x++) {
$row = $rows[$x];
$nftDb = Nft::findNftByOwner($row['owner_address'], $row['token_id']);

View File

@ -124,7 +124,7 @@ class Nft extends BaseModel {
$sql = "select * from t_nft1155 where owner_address=:owner_address and token_id>10000000 and balance>0";
};
break;
case 4:{
case 5:{
$sql = "select * from t_nft1155 where owner_address=:owner_address and token_id<10000000 and balance>0";
};
break;