This commit is contained in:
hujiabin 2024-08-21 15:41:07 +08:00
parent 6bbd7f18d0
commit 8249ef89c6

View File

@ -360,7 +360,7 @@ class OtherController extends BaseAuthedController {
$nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime());
$temp['daily_open_time_2'] = strtotime($modeMeta['daily_open_time_2']) ;
$temp['daily_end_time_2'] = strtotime($modeMeta['daily_end_time_2']);
$temp['state2'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
$temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
}
$isOpen = mt\MapMode::isOpen($modeMeta);