1
This commit is contained in:
parent
346633763f
commit
adf3c1db89
@ -352,11 +352,35 @@ class OtherController extends BaseAuthedController {
|
||||
$temp['daily_end_time'] = strtotime($modeMeta['daily_end_time']);
|
||||
$temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
|
||||
}
|
||||
|
||||
array_push(
|
||||
$modeList,
|
||||
$temp
|
||||
);
|
||||
|
||||
$isOpen = true;
|
||||
switch ($modeMeta['mapMode']) {
|
||||
case mt\MapMode::GOLD_MODE:
|
||||
{
|
||||
$isOpen = myself()->_switchIsOpen('bigEventBoxDrop');
|
||||
}
|
||||
break;
|
||||
case mt\MapMode::BET_MODE:
|
||||
{
|
||||
$isOpen = myself()->_switchIsOpen('bountyMode');
|
||||
}
|
||||
break;
|
||||
case mt\MapMode::TREASURE_BOX_MODE:
|
||||
{
|
||||
$isOpen = myself()->_switchIsOpen('bigEventMode');
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
}
|
||||
break;
|
||||
}
|
||||
if ($isOpen) {
|
||||
array_push(
|
||||
$modeList,
|
||||
$temp
|
||||
);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user