1
This commit is contained in:
commit
eaf341c031
@ -29,13 +29,14 @@ class MarketController extends BaseController {
|
||||
|
||||
public function getPreSaleInfo()
|
||||
{
|
||||
$account = getReqVal('account', '');
|
||||
$currBatchMeta = mt\MarketBatch::getCurrentBatch();
|
||||
if (!$currBatchMeta) {
|
||||
myself()->_rspErr(500, 'server internal error');
|
||||
return;
|
||||
}
|
||||
|
||||
$countdown = max(0, $currBatchMeta['_start_time_utc'] - myself()->_getNowTime());
|
||||
$countdown = max(0, $currBatchMeta['start_time'] - myself()->_getNowTime());
|
||||
$soldNum = min(BoxOrder::getSoldNum($currBatchMeta['id']), $currBatchMeta['number_of_props']);
|
||||
$buyed = $this->isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['id']);
|
||||
$presaleInfo = array(
|
||||
|
Loading…
x
Reference in New Issue
Block a user