1
This commit is contained in:
parent
73f17103e0
commit
419e87b78d
@ -65,7 +65,7 @@ class MarketController extends BaseController {
|
|||||||
$remainBuyableNum = Goods::getRemainBuyableNum($meta);
|
$remainBuyableNum = Goods::getRemainBuyableNum($meta);
|
||||||
if ($remainBuyableNum > 0) {
|
if ($remainBuyableNum > 0) {
|
||||||
++$pageInfo['total'];
|
++$pageInfo['total'];
|
||||||
if ($pageInfo['total'] >= $pageInfo['per_page'] * $pageInfo['current_page'] &&
|
if ($pageInfo['total'] > $pageInfo['per_page'] * ($pageInfo['current_page'] - 1) &&
|
||||||
count($rows) < $pageInfo['per_page']) {
|
count($rows) < $pageInfo['per_page']) {
|
||||||
array_push($rows, $this->wrapNft($meta, $remainBuyableNum));
|
array_push($rows, $this->wrapNft($meta, $remainBuyableNum));
|
||||||
}
|
}
|
||||||
@ -83,7 +83,7 @@ class MarketController extends BaseController {
|
|||||||
private function wrapNft($meta, $inventory)
|
private function wrapNft($meta, $inventory)
|
||||||
{
|
{
|
||||||
$nft = array();
|
$nft = array();
|
||||||
$nft['goods_id'] = 0;
|
$nft['goods_id'] = $meta['id'];
|
||||||
$nft['nft_id'] = '';
|
$nft['nft_id'] = '';
|
||||||
$nft['type'] = 0;
|
$nft['type'] = 0;
|
||||||
$nft['token_id'] = '';
|
$nft['token_id'] = '';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user