|
@@ -281,7 +281,14 @@
|
|
|
}
|
|
|
|
|
|
function isWorkingHours() {
|
|
|
- return false;
|
|
|
+ // 检查是否为本地域名
|
|
|
+ const isLocalDomain = window.location.hostname === 'localhost' ||
|
|
|
+ window.location.hostname === '127.0.0.1' ||
|
|
|
+ window.location.hostname === '';
|
|
|
+
|
|
|
+ if (isLocalDomain) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
const now = new Date();
|
|
|
const day = now.getDay(); // 0是周日,1是周一,...,6是周六
|
|
|
const hours = now.getHours();
|