...
This commit is contained in:
parent
cb0f420786
commit
c92183705b
@ -630,6 +630,8 @@ class MarketController extends BaseController {
|
||||
$rows = Nft::getNft1155List($account, $type);
|
||||
foreach ($rows as &$row) {
|
||||
$row['detail'] = Chip::toDto(Chip::getChipByTokenId($row['token_id']));
|
||||
if (!in_array($row['detail']['chip_type'], $job))
|
||||
continue;
|
||||
if ($row['detail']['chip_grade']<$lv) continue;
|
||||
if (count($search)>0) {
|
||||
if (!(in_array($row['detail']['token_id'], $search))) continue;
|
||||
@ -651,6 +653,8 @@ class MarketController extends BaseController {
|
||||
foreach ($rows as &$row) {
|
||||
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
||||
$row['detail'] = $this->getNftGameData($nftDb);
|
||||
if (!in_array($row['detail']['type'], $job))
|
||||
continue;
|
||||
array_push($nfts, $row);
|
||||
}
|
||||
usort($nfts, $sortByTokenId);
|
||||
|
Loading…
x
Reference in New Issue
Block a user