Browse Source

:sparkles: 添加 `config.NOTIFY_APPEND_MORE_INFO`

Mizore 2 years ago
parent
commit
8992925892
2 changed files with 4 additions and 3 deletions
  1. 3 0
      script/config.lua
  2. 1 3
      script/util_notify.lua

+ 3 - 0
script/config.lua

@@ -43,6 +43,9 @@ return {
     -- 开机通知 (会消耗流量)
     BOOT_NOTIFY = true,
     --
+    -- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加)
+    NOTIFY_APPEND_MORE_INFO = true,
+    --
     -- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
     LOW_POWER_MODE = false,
 }

+ 1 - 3
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