| | |
| | | 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] |
| | |
| | | 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 |
| | | } |
| | | |