Skip to content

Commit

Permalink
更换夜间时间为晚八至早八
Browse files Browse the repository at this point in the history
  • Loading branch information
crowya authored Jul 28, 2023
1 parent a11c1ff commit 2c01868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion live2d/waifu-tips.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c01868

Please sign in to comment.