| | |
| | | source["ageDescription"] = getAgeDesc(source["Age"]) |
| | | |
| | | source["videoNum"] = getVideoUrl(source) |
| | | fmt.Println("BaseName: ", source["BaseName"]) |
| | | picDate := source["picDate"].(string) |
| | | lastIdx := strings.LastIndex(picDate,":") |
| | | picDateStr := picDate[:lastIdx] |
| | |
| | | return "" |
| | | } |
| | | filePath := resp.FilePath |
| | | |
| | | videoUrl = "" |
| | | if !strings.Contains(filePath, "/cut"){ |
| | | return "" |
| | | videoUrl = "" |
| | | } else { |
| | | strArr := strings.Split(filePath, "/cut") |
| | | ngxUrl := ngxMap[indeviceId] |
| | | if ngxUrl !="" && len(strArr) >0 { |
| | | return ngxUrl + strArr[1] |
| | | videoUrl = ngxUrl + strArr[1] |
| | | } |
| | | } |
| | | |
| | | return "" |
| | | fmt.Println("videoReqUrl: ",reqUrl) |
| | | fmt.Println("video: ",videoUrl) |
| | | return videoUrl |
| | | } |
| | | |
| | | type RespVideo struct{ |