---
panlei
2019-06-25 0b9b9fc5ec6c42cc22e69df7ae587a481143030b
insertdata/insertDataToEs.go
@@ -2,7 +2,6 @@
import (
   "errors"
   "fmt"
   "encoding/json"
   "log"
   "net"
@@ -179,6 +178,7 @@
            }
            isAlarm := ""
            resp := make(map[string]interface{})
            resp["fileUrl"] = ""
            if len(alarmRules) > 0 {
               isAlarm = "1"
               // 解压缩并上传图片
@@ -202,7 +202,7 @@
            }
            // 查询cameraName
            camera,err := dbapi.CameraApi{}.GetCameraById(msg.Cid)
            if err == nil {
            if err != nil {
               log.Println("查询摄像机信息失败")
            }
            serverIp,err := GetLocalIP()