更换夜间时间为晚八至早八

This commit is contained in:
丑小鸦
2023-07-28 19:55:14 +08:00
committed by GitHub
parent a11c1fff3e
commit 2c0186874c

View File

@@ -205,7 +205,7 @@ function loadWidget() {
if (modelId === null) {
// 首次访问加载 指定模型 的 指定材质
const now = new Date();
if(now.getHours()>=22 || now.getHours()<=7){
if(now.getHours()>=20 || now.getHours()<8){
modelId = 1; // 夜间模型ID
}else{
modelId = 0; // 白天模型ID