This commit is contained in:
aozhiwei 2022-01-26 11:20:10 +08:00
parent 41a54c4265
commit 6796aad0a8

View File

@ -47,9 +47,9 @@ class NewMarketController extends BaseController {
'batch_id' => $currBatchMeta['batch_id'], 'batch_id' => $currBatchMeta['batch_id'],
'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()), 'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()),
'sold_num' => min(BoxOrder::getSoldNum($currBatchMeta['batch_id']), $currBatchMeta['number_of_props']), 'sold_num' => min(BoxOrder::getSoldNum($currBatchMeta['batch_id']), $currBatchMeta['number_of_props']),
'inventory_num' => $currBatchMeta['number_of_props'], 'total_num' => $currBatchMeta['number_of_props'],
'hint' => str_replace("\n", '\n', $currBatchMeta['hint']), 'hint' => str_replace("\n", '\n', $currBatchMeta['hint']),
'buyed' => BoxOrder::isBuyed($account, $currBatchMeta['batch_id']) 'buyed' => $this->isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['batch_id'])
); );
$batchMetas = mt\MarketGoods::getBatchMetas($currBatchMeta['batch_id']); $batchMetas = mt\MarketGoods::getBatchMetas($currBatchMeta['batch_id']);
@ -129,7 +129,6 @@ class NewMarketController extends BaseController {
)); ));
} }
private function toNftDto($nftDb) private function toNftDto($nftDb)
{ {
$nft = array( $nft = array(