| | |
| | | "strings" |
| | | "sync" |
| | | "time" |
| | | "github.com/long/config" |
| | | "andriodServer/config" |
| | | |
| | | log "github.com/long/test/log" |
| | | log "andriodServer/log" |
| | | ) |
| | | |
| | | func GetEsDataReq(url string, parama string, picurl string, isSource bool) (error, map[string]interface{}) { |
| | |
| | | } else { |
| | | reqUrl = url |
| | | } |
| | | log.Log.Infoln("reqUrl:",reqUrl) |
| | | |
| | | paramMap := make(map[string]interface{},0) |
| | | paramMap["imgKey"] = imgKey |
| | |
| | | } else { |
| | | strArr := strings.Split(filePath, "/cut") |
| | | ngxUrl := config.NgxMap[indeviceId] |
| | | log.Log.Infoln("ngxUrl:",ngxUrl) |
| | | if ngxUrl !="" && len(strArr) >0 { |
| | | videoUrl = ngxUrl + strArr[1] |
| | | } |
| | |
| | | "\"_source\":[\"baseInfo\",\"Gender\",\"BaseName\",\"Age\",\"personId\",\"personPicUrl\",\"indeviceName\",\"imgKey\",\"sdkType\",\"ageDescription\",\"indeviceid\",\"content\",\"Id\",\"picAddress\",\"picMaxUrl\",\"picDate\",\"Race\",\"videoNum\",\"picSmUrl\",\"taskName\",\"personIsHub\",\"idcard\",\"videoIp\",\"videoReqNum\"]" + |
| | | "}" |
| | | err, tokenRes := GetEsDataReq(url, prama, picurl, true) |
| | | log.Log.InfoInfoln("条数:",size,"耗时:",time.Since(startTime)) |
| | | log.Log.Infoln("条数:",size,"耗时:",time.Since(startTime)) |
| | | if err != nil { |
| | | log.Log.Errorln(err) |
| | | return nil |