|
@@ -118,6 +118,9 @@ sys.taskInit(function()
|
|
|
-- 开机通知
|
|
|
if config.BOOT_NOTIFY then sys.timerStart(util_notify.add, 1000 * 5, "#BOOT") end
|
|
|
|
|
|
+ -- 定时同步时间
|
|
|
+ sys.timerLoopStart(socket.sntp, 1000 * 60 * 30)
|
|
|
+
|
|
|
-- 定时查询流量
|
|
|
if config.QUERY_TRAFFIC_INTERVAL and config.QUERY_TRAFFIC_INTERVAL >= 1000 * 60 then
|
|
|
sys.timerLoopStart(util_mobile.queryTraffic, config.QUERY_TRAFFIC_INTERVAL)
|