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