1
This commit is contained in:
parent
bbefbf1303
commit
2e7ce88882
@ -58,7 +58,7 @@ class MarketController extends BaseController {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$countdown = max(0, $currBatchMeta['start_time'] - myself()->_getNowTime());
|
$countdown = mt\MarketBatch::getCountdown($currBatchMeta);
|
||||||
$soldNum = min(BoxOrder::getSoldNum($currBatchMeta['id']), $currBatchMeta['number_of_props']);
|
$soldNum = min(BoxOrder::getSoldNum($currBatchMeta['id']), $currBatchMeta['number_of_props']);
|
||||||
$totalNum = $currBatchMeta['number_of_props'];
|
$totalNum = $currBatchMeta['number_of_props'];
|
||||||
$buyed = MarketService::isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['id']);
|
$buyed = MarketService::isTestMode() ? 0 : BoxOrder::isBuyed($account, $currBatchMeta['id']);
|
||||||
@ -87,7 +87,7 @@ class MarketController extends BaseController {
|
|||||||
//'buyed' => $buyed
|
//'buyed' => $buyed
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($this->isTestMode()) {
|
if (MarketService::isTestMode()) {
|
||||||
foreach(array_keys($presaleInfo) as $key) {
|
foreach(array_keys($presaleInfo) as $key) {
|
||||||
if (!is_null(getReqVal($key, null))) {
|
if (!is_null(getReqVal($key, null))) {
|
||||||
$presaleInfo[$key] = getReqVal($key, $presaleInfo[$key]);
|
$presaleInfo[$key] = getReqVal($key, $presaleInfo[$key]);
|
||||||
|
@ -34,6 +34,12 @@ class MarketBatch {
|
|||||||
return $currentMeta;
|
return $currentMeta;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getCountdown($meta)
|
||||||
|
{
|
||||||
|
$countdown = max(0, $currBatchMeta['start_time'] - myself()->_getNowTime());
|
||||||
|
return $countdown;
|
||||||
|
}
|
||||||
|
|
||||||
protected static function getMetaList()
|
protected static function getMetaList()
|
||||||
{
|
{
|
||||||
if (!self::$metaList) {
|
if (!self::$metaList) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user