From 8992925892d0405bcf966c11c109a86389048480 Mon Sep 17 00:00:00 2001 From: Mizore Date: Thu, 9 Feb 2023 20:25:24 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=B7=BB=E5=8A=A0=20`config.NOTIF?= =?UTF-8?q?Y=5FAPPEND=5FMORE=5FINFO`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/config.lua | 3 +++ script/util_notify.lua | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/script/config.lua b/script/config.lua index 53f46b7..c6ef1a0 100644 --- a/script/config.lua +++ b/script/config.lua @@ -43,6 +43,9 @@ return { -- 开机通知 (会消耗流量) BOOT_NOTIFY = true, -- + -- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加) + NOTIFY_APPEND_MORE_INFO = true, + -- -- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开 LOW_POWER_MODE = false, } diff --git a/script/util_notify.lua b/script/util_notify.lua index 77fbe16..3d60c37 100644 --- a/script/util_notify.lua +++ b/script/util_notify.lua @@ -1,7 +1,5 @@ local util_notify = {} --- 在通知内容加入设备信息 -local is_append_more_info = true -- 消息队列 local msg_queue = {} @@ -263,7 +261,7 @@ function util_notify.send(msg) return true end - if is_append_more_info then + if config.NOTIFY_APPEND_MORE_INFO then msg = msg .. append() end