refactor: 重构 zabbix 功能到集成模块中

This commit is contained in:
2024-08-26 14:09:45 +08:00
parent 00d2b30658
commit 7eee4cfc26
4 changed files with 36 additions and 25 deletions

View File

@ -16,7 +16,7 @@ func CreateEventSubscription(c *gin.Context) {
callbackURL := event.AttributedURIType(fmt.Sprintf("%s/onvif/subscriptions/%s/callback", config.Config.App.URL, xaddr))
log.Printf("CreateEventSubscription callback URL: %s", callbackURL)
conn := conns[xaddr]
conn := Conns[xaddr]
if conn == nil {
response.NewResponse().Fail("Connection not found").WithCode(http.StatusNotFound).Send(c)
return