refactor: 重构 zabbix 功能到集成模块中
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user