Skip to content

Commit 4aea2e8

Browse files
committed
feat: ueditor upgrade
1 parent e987678 commit 4aea2e8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

module/Blog/Util/BlogThemeUtil.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ public static function isDark()
1717
return false;
1818
}
1919
$time = date('H:i:s');
20-
if (
21-
($time > $start && $time < $end)
22-
||
23-
($time > $end && $time < $start)
24-
) {
20+
if ($end < $start) {
21+
$t = $start;
22+
$start = $end;
23+
$end = $t;
24+
}
25+
if ($time > $start && $time < $end) {
2526
return true;
2627
}
2728
return false;

0 commit comments

Comments
 (0)