| | |
| | | "strings" |
| | | "sync" |
| | | "time" |
| | | "github.com/long/config" |
| | | "tcpserver/config" |
| | | |
| | | log "github.com/long/test/log" |
| | | log "tcpserver/log" |
| | | ) |
| | | |
| | | func GetEsDataReq(url string, parama string, picurl string, isSource bool) (error, map[string]interface{}) { |
| | |
| | | "\"_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 |