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