...
This commit is contained in:
parent
e296fc19c3
commit
cb0f420786
@ -749,20 +749,6 @@ class MarketController extends BaseController {
|
|||||||
|
|
||||||
$conn = myself()->_getMysql('');
|
$conn = myself()->_getMysql('');
|
||||||
|
|
||||||
$rows = $conn->execQuery(
|
|
||||||
'SELECT * FROM t_market_store '.
|
|
||||||
'WHERE token_type=:token_type '.
|
|
||||||
$job_filter_fn($job_filter_array).
|
|
||||||
$lv_filter_fn($lv_filter).
|
|
||||||
$quality_filter_fn($quality_filter).
|
|
||||||
$durability_filter_fn($durability_filter).
|
|
||||||
$search_filter_fn($search_filter_array).
|
|
||||||
$order_fn($order_method, $order_asc).
|
|
||||||
'LIMIT '.$start.','.$page_size,
|
|
||||||
array(
|
|
||||||
':token_type' => $type,
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$counts = $conn->execQuery(
|
$counts = $conn->execQuery(
|
||||||
'SELECT count(*) as count FROM t_market_store '.
|
'SELECT count(*) as count FROM t_market_store '.
|
||||||
'WHERE token_type=:token_type '.
|
'WHERE token_type=:token_type '.
|
||||||
@ -786,10 +772,25 @@ class MarketController extends BaseController {
|
|||||||
if ($start<0) $start = 0;
|
if ($start<0) $start = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$rows = $conn->execQuery(
|
||||||
|
'SELECT * FROM t_market_store '.
|
||||||
|
'WHERE token_type=:token_type '.
|
||||||
|
$job_filter_fn($job_filter_array).
|
||||||
|
$lv_filter_fn($lv_filter).
|
||||||
|
$quality_filter_fn($quality_filter).
|
||||||
|
$durability_filter_fn($durability_filter).
|
||||||
|
$search_filter_fn($search_filter_array).
|
||||||
|
$order_fn($order_method, $order_asc).
|
||||||
|
'LIMIT '.$start.','.$page_size,
|
||||||
|
array(
|
||||||
|
':token_type' => $type,
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
$nfts = array();
|
$nfts = array();
|
||||||
|
|
||||||
for ($x = $start; $x < $page_end; $x++) {
|
for ($x = $start; $x < $page_end; $x++) {
|
||||||
$row = $rows[$x];
|
$row = $rows[$x%$page_size];
|
||||||
$nftDb = Nft::findNftByOwner($row['owner_address'], $row['token_id']);
|
$nftDb = Nft::findNftByOwner($row['owner_address'], $row['token_id']);
|
||||||
if (!$nftDb) {
|
if (!$nftDb) {
|
||||||
myself()->_rspErr(1, 'nft not exists');
|
myself()->_rspErr(1, 'nft not exists');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user