1
This commit is contained in:
parent
8249ef89c6
commit
fcd397f9d0
@ -350,7 +350,10 @@ class OtherController extends BaseAuthedController {
|
|||||||
$nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime());
|
$nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime());
|
||||||
$temp['daily_open_time'] = strtotime($modeMeta['daily_open_time']) ;
|
$temp['daily_open_time'] = strtotime($modeMeta['daily_open_time']) ;
|
||||||
$temp['daily_end_time'] = strtotime($modeMeta['daily_end_time']);
|
$temp['daily_end_time'] = strtotime($modeMeta['daily_end_time']);
|
||||||
$temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
|
$temp['state'] = 0;
|
||||||
|
if ($nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ){
|
||||||
|
$temp['state'] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -360,7 +363,9 @@ class OtherController extends BaseAuthedController {
|
|||||||
$nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime());
|
$nowTimeOffset = myself()->_getDaySecondsOffset(myself()->_getNowTime());
|
||||||
$temp['daily_open_time_2'] = strtotime($modeMeta['daily_open_time_2']) ;
|
$temp['daily_open_time_2'] = strtotime($modeMeta['daily_open_time_2']) ;
|
||||||
$temp['daily_end_time_2'] = strtotime($modeMeta['daily_end_time_2']);
|
$temp['daily_end_time_2'] = strtotime($modeMeta['daily_end_time_2']);
|
||||||
$temp['state'] = $nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset ? 1 : 0;
|
if ($nowTimeOffset >= $dailyOpenTimeOffset && $nowTimeOffset <= $dailyEndTimeOffset){
|
||||||
|
$temp['state'] = 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$isOpen = mt\MapMode::isOpen($modeMeta);
|
$isOpen = mt\MapMode::isOpen($modeMeta);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user