This commit is contained in:
aozhiwei 2024-08-20 17:07:46 +08:00
parent 346633763f
commit adf3c1db89

View File

@ -353,11 +353,35 @@ class OtherController extends BaseAuthedController {
$temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0; $temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
} }
$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( array_push(
$modeList, $modeList,
$temp $temp
); );
} }
}
return true; return true;
}); });
$this->_rspData(array( $this->_rspData(array(