From 59b5e4da96ca452d415f55fa5087718de0829747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Fri, 18 Dec 2020 15:11:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=9A=E7=9F=A5=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/float.js | 5 +++++ src/main.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/js/float.js b/src/js/float.js index fb18ad8..0b70692 100644 --- a/src/js/float.js +++ b/src/js/float.js @@ -29,6 +29,11 @@ Anot({ var time = +Anot.ss('last_update') || 0 var now = Date.now() + // 有触发小窗口显示时, 更新通知提醒 + if (Anot.ls('notify') === '1') { + app.dispatch('notify') + } + this.reloadGays() setTimeout(() => { // 如果离上次更新超过15分钟, 则自动更新 diff --git a/src/main.js b/src/main.js index 6f1763f..40fd494 100644 --- a/src/main.js +++ b/src/main.js @@ -130,7 +130,7 @@ ipcMain.on('app', (ev, conn) => { var t1 = Date.now() var t2 = new Date() t2.setHours(14) - t2.setMinutes(0) + t2.setMinutes(30) t2.setSeconds(0) if (t2.getTime() - t1 > 0) {