|
|
@@ -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;
|
|
|
}
|