From 7d0fa89224072109f53955619daa0163ef2f0890 Mon Sep 17 00:00:00 2001 From: Mizore Date: Mon, 16 Jan 2023 19:39:50 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B7=BB=E5=8A=A0=E5=BC=80?= =?UTF-8?q?=E6=9C=BA=E9=80=9A=E7=9F=A5=E9=85=8D=E7=BD=AE=E9=A1=B9=20`confi?= =?UTF-8?q?g.BOOT=5FNOTIFY`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/config.lua | 5 ++++- script/main.lua | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/script/config.lua b/script/config.lua index 0433982..cabd4af 100644 --- a/script/config.lua +++ b/script/config.lua @@ -38,5 +38,8 @@ return { QUERY_TRAFFIC_INTERVAL = 1000 * 60 * 60 * 6, -- -- 定时基站定位间隔, 单位毫秒, 设置为 0 关闭 - LOCATION_INTERVAL = 1000 * 60 * 30 + LOCATION_INTERVAL = 1000 * 60 * 30, + -- + -- 开机通知 + BOOT_NOTIFY = true, } diff --git a/script/main.lua b/script/main.lua index b32e570..69e3bc2 100644 --- a/script/main.lua +++ b/script/main.lua @@ -82,7 +82,9 @@ sys.taskInit( sys.waitUntil("COORD_INIT_DONE", 1000 * 20) -- 开机通知 - util_notify.send("#BOOT") + if config.BOOT_NOTIFY then + util_notify.send("#BOOT") + end -- 定时查询流量 if config.QUERY_TRAFFIC_INTERVAL and config.QUERY_TRAFFIC_INTERVAL >= 1000 * 60 then