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