...
This commit is contained in:
parent
dbe5ed8ef8
commit
b8ccf35460
@ -551,7 +551,47 @@ class MarketController extends BaseController {
|
|||||||
$price_filter = getReqVal('price_filter', '');
|
$price_filter = getReqVal('price_filter', '');
|
||||||
$price_filter_array = explode('|', $price_filter);
|
$price_filter_array = explode('|', $price_filter);
|
||||||
|
|
||||||
echo $price_filter_array;
|
$conn = myself()->_getMysql('');
|
||||||
|
|
||||||
|
$rows = SqlHelper::ormSelect(
|
||||||
|
$conn,
|
||||||
|
't_market_store'
|
||||||
|
);
|
||||||
|
|
||||||
|
$nfts = array();
|
||||||
|
foreach ($rows as $row) {
|
||||||
|
$nftDb = Nft::getNft($row['token_id']);
|
||||||
|
if (!$nftDb) {
|
||||||
|
myself()->_rspErr(1, 'nft not exists');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
$nft = Nft::toDto($nftDb);
|
||||||
|
|
||||||
|
$t = $row['token_type'];
|
||||||
|
switch($t) {
|
||||||
|
case Nft::HERO_TYPE: {
|
||||||
|
|
||||||
|
} break;
|
||||||
|
case Nft::EQUIP_TYPE: {
|
||||||
|
|
||||||
|
} break;
|
||||||
|
case Nft::CHIP_TYPE: {
|
||||||
|
|
||||||
|
} break;
|
||||||
|
default: {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$row['details'] = $nft;
|
||||||
|
array_push($nfts, $row);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->_rspData(array(
|
||||||
|
"total" => 1000,
|
||||||
|
"start" => $start,
|
||||||
|
"page_size" => $page_size,
|
||||||
|
'nfts' => $nfts,
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user