1
This commit is contained in:
parent
c53e6975cb
commit
1fae4dee36
@ -33,15 +33,18 @@ class MarketController extends BaseController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$countdown = max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime());
|
||||||
|
$soldNum = min(BoxOrder::getSoldNum($currBatchMeta['batch_id']), $currBatchMeta['number_of_props']);
|
||||||
|
$buyed = $this->isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['batch_id']);
|
||||||
$presaleInfo = array(
|
$presaleInfo = array(
|
||||||
'batch_id' => $currBatchMeta['batch_id'],
|
'batch_id' => $currBatchMeta['batch_id'],
|
||||||
'countdown' => max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime()),
|
'countdown' => $countdown,
|
||||||
'sold_num' => min(BoxOrder::getSoldNum($currBatchMeta['batch_id']), $currBatchMeta['number_of_props']),
|
'sold_num' => $soldNum,
|
||||||
'total_num' => $currBatchMeta['number_of_props'],
|
'total_num' => $currBatchMeta['number_of_props'],
|
||||||
'state' => 2,
|
'state' => 2,
|
||||||
'title' => '',
|
'title' => '',
|
||||||
'hint' => str_replace("\n", '\n', $currBatchMeta['hint']),
|
'hint' => str_replace("\n", '\n', $currBatchMeta['hint']),
|
||||||
'buyed' => $this->isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['batch_id'])
|
'buyed' => $buyed
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->isTestMode()) {
|
if ($this->isTestMode()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user