tcp server 用于给andriod 客户端定时发送消息
liuxiaolong
2019-05-30 fa1d19204f1aab89e6e054da946d025dbbb5f722
esutil/EsClient.go
@@ -247,10 +247,12 @@
   if err !=nil {
      return ""
   }
   filePath := resp.FilePath
   videoUrl = ""
   if !strings.Contains(filePath, "/cut"){
      videoUrl = ""
      fmt.Printf("videoReqUrl:%s ,imgKey:%s ,picDate:%s ,cameraId:%s ,filePath:%s \n ",reqUrl,imgKey,picDate,cameraId,filePath)
   } else {
      strArr := strings.Split(filePath, "/cut")
      ngxUrl := ngxMap[indeviceId]
@@ -258,10 +260,9 @@
         videoUrl = ngxUrl + strArr[1]
      }
   }
   if videoUrl == "" {
      fmt.Printf("videoReqUrl:%s ,imgKey:%s ,picDate:%s ,cameraId:%s ",reqUrl,imgKey,picDate,cameraId)
   if videoUrl == ""{
      fmt.Println("resp: ",resp)
   }
   return videoUrl
}