iaunco před 6 roky
rodič
revize
6ac0044095
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. 2 3
      index.js

+ 2 - 3
index.js

@@ -29,12 +29,11 @@ async function interval() {
         const hour = now.getHours();
         const min = now.getMinutes();
         const sec = now.getSeconds();
-        if (lastDay === null) {
-            lastDay = day;
-        } else if (lastDay !== day) {
+        if (lastDay !== null && lastDay !== day) {
             // 日期变动,清空数组
             infoOK = [];
         }
+        lastDay = day;
         if ((hour === 0 && min < 30) || (hour === 0 && min === 30 && sec <= 30) || hour >= 16) {
             return;
         }