iaunco vor 6 Jahren
Ursprung
Commit
a220f45235
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      index.js

+ 2 - 1
index.js

@@ -28,13 +28,14 @@ async function interval() {
         const day = now.getDate();
         const hour = now.getHours();
         const min = now.getMinutes();
+        const sec = now.getSeconds();
         if (lastDay === null) {
             lastDay = day;
         } else if (lastDay !== day) {
             // 日期变动,清空数组
             infoOK = [];
         }
-        if ((hour === 0 && min <= 30) || hour >= 16) {
+        if ((hour === 0 && min < 30 && sec < 30) || hour >= 16) {
             return;
         }
         for (let i = 0, j = info.length; i < j; i++) {