diff --git a/webapp/controller/NewMarketController.class.php b/webapp/controller/NewMarketController.class.php index 1643f3ed..d47e0a61 100644 --- a/webapp/controller/NewMarketController.class.php +++ b/webapp/controller/NewMarketController.class.php @@ -47,9 +47,9 @@ class NewMarketController extends BaseController { 'batch_id' => $currBatchMeta['batch_id'], 'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()), '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']), - 'buyed' => BoxOrder::isBuyed($account, $currBatchMeta['batch_id']) + 'buyed' => $this->isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['batch_id']) ); $batchMetas = mt\MarketGoods::getBatchMetas($currBatchMeta['batch_id']); @@ -129,7 +129,6 @@ class NewMarketController extends BaseController { )); } - private function toNftDto($nftDb) { $nft = array(