✨ 添加 config.NOTIFY_APPEND_MORE_INFO
This commit is contained in:
parent
0a3a41a1ad
commit
8992925892
@ -43,6 +43,9 @@ return {
|
|||||||
-- 开机通知 (会消耗流量)
|
-- 开机通知 (会消耗流量)
|
||||||
BOOT_NOTIFY = true,
|
BOOT_NOTIFY = true,
|
||||||
--
|
--
|
||||||
|
-- 通知内容追加更多信息 (通知内容增加会导致流量消耗增加)
|
||||||
|
NOTIFY_APPEND_MORE_INFO = true,
|
||||||
|
--
|
||||||
-- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
|
-- 开启低功耗模式, USB 断开连接无法查看日志, RNDIS 网卡会断开
|
||||||
LOW_POWER_MODE = false,
|
LOW_POWER_MODE = false,
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
local util_notify = {}
|
local util_notify = {}
|
||||||
|
|
||||||
-- 在通知内容加入设备信息
|
|
||||||
local is_append_more_info = true
|
|
||||||
-- 消息队列
|
-- 消息队列
|
||||||
local msg_queue = {}
|
local msg_queue = {}
|
||||||
|
|
||||||
@ -263,7 +261,7 @@ function util_notify.send(msg)
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
if is_append_more_info then
|
if config.NOTIFY_APPEND_MORE_INFO then
|
||||||
msg = msg .. append()
|
msg = msg .. append()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user