...
This commit is contained in:
parent
87aeb283cd
commit
535b31ccac
@ -575,6 +575,9 @@ class MarketController extends BaseController {
|
|||||||
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
||||||
foreach ($rows as &$row) {
|
foreach ($rows as &$row) {
|
||||||
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
||||||
|
if (empty($nftDb)) {
|
||||||
|
$nftDb = Nft::getNft($row['token_id']);
|
||||||
|
}
|
||||||
$row['info'] = Nft::toDto($nftDb);
|
$row['info'] = Nft::toDto($nftDb);
|
||||||
$row['detail'] = Hero::toDtoInfo(Hero::findByTokenId2($row['token_id']));
|
$row['detail'] = Hero::toDtoInfo(Hero::findByTokenId2($row['token_id']));
|
||||||
if (in_array($row['info']['info']['job'], $job)==false) continue;
|
if (in_array($row['info']['info']['job'], $job)==false) continue;
|
||||||
@ -606,6 +609,9 @@ class MarketController extends BaseController {
|
|||||||
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
||||||
foreach ($rows as &$row) {
|
foreach ($rows as &$row) {
|
||||||
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
||||||
|
if (empty($nftDb)) {
|
||||||
|
$nftDb = Nft::getNft($row['token_id']);
|
||||||
|
}
|
||||||
$row['info'] = Nft::toDto($nftDb);
|
$row['info'] = Nft::toDto($nftDb);
|
||||||
$row['detail'] = Gun::toDtoInfo(Gun::findByTokenId2($row['token_id']));
|
$row['detail'] = Gun::toDtoInfo(Gun::findByTokenId2($row['token_id']));
|
||||||
if ($row['detail']['gun_lv']<$lv) continue;
|
if ($row['detail']['gun_lv']<$lv) continue;
|
||||||
@ -660,6 +666,9 @@ class MarketController extends BaseController {
|
|||||||
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
$rows = array_merge($rows, $this->listMySelledNfts($account, $type));
|
||||||
foreach ($rows as &$row) {
|
foreach ($rows as &$row) {
|
||||||
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
$nftDb = Nft::findNftByOwner($account, $row['token_id']);
|
||||||
|
if (empty($nftDb)) {
|
||||||
|
$nftDb = Nft::getNft($row['token_id']);
|
||||||
|
}
|
||||||
$row['detail'] = $this->getNftGameData($nftDb);
|
$row['detail'] = $this->getNftGameData($nftDb);
|
||||||
if (!in_array($row['detail']['type'], $job))
|
if (!in_array($row['detail']['type'], $job))
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user