From 019134c072f263304e45dc3db092c1d7242cdb6b Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期日, 21 四月 2024 23:45:53 +0800 Subject: [PATCH] 处理设备名为空的bug --- main.go | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/main.go b/main.go index 1e8a151..1c8a2cf 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ import ( "context" "fmt" + "gat1400Exchange/cron" "net/http" "os" "os/signal" @@ -38,7 +39,9 @@ // 鍚姩缃戠粶瑙嗛瀛楃鍙犲姞鍣ㄦ湇鍔� go service.NVCSServer() - go service.DeviceInfoReportTask() + + // 鍚姩瀹氭椂浠诲姟 + cron.Init() // Initializing the server in a goroutine so that // it won't block the graceful shutdown handling below -- Gitblit v1.8.0