update picmaxurl to operated and fix getinfobyid
| | |
| | | }] |
| | | } |
| | | }, |
| | | "_source":["faceFeature"] |
| | | "_source":["targetInfo.feature"] |
| | | } |
| | | ` |
| | | buf, err := EsReq("POST", "http://"+serverIp+":"+serverPort+"/"+indexName+"/_search", []byte(jsonDSL)) |
| | |
| | | if err != nil { |
| | | return "", err |
| | | } |
| | | faceFeature := sources[0]["faceFeature"].(string) |
| | | return faceFeature, nil |
| | | feature := sources[0]["targetInfo"].([]interface{})[0].(map[string]interface{})["feature"].(string) |
| | | return feature, nil |
| | | } |
| | | |
| | | //根据抓拍人员id更新(videourl)摄像机地址 |
| | |
| | | tmpinfo.TaskId, ok = source["taskId"].(string) |
| | | tmpinfo.TaskName, ok = source["taskName"].(string) |
| | | tmpinfo.SdkName, ok = source["sdkName"].(string) |
| | | tmpinfo.PicMaxUrl, ok = source["picMaxUrl"].(string) |
| | | |
| | | if source["picMaxUrl"] != nil { |
| | | for _,v := range source["picMaxUrl"].([]interface{}) { |
| | | tmpinfo.PicMaxUrl = append(tmpinfo.PicMaxUrl, v.(string)) |
| | | } |
| | | } |
| | | tmpinfo.VideoUrl, ok = source["videoUrl"].(string) |
| | | tmpinfo.PicDate, ok = source["picDate"].(string) |
| | | if source["targetInfo"] != nil { |
| | |
| | | lti.TaskId, ok = lm["taskId"].(string) |
| | | lti.TaskName, ok = lm["taskName"].(string) |
| | | lti.SdkName, ok = lm["sdkName"].(string) |
| | | lti.PicMaxUrl, ok = lm["picMaxUrl"].(string) |
| | | if lm["picMaxUrl"] != nil { |
| | | for _,v := range lm["picMaxUrl"].([]interface{}) { |
| | | lti.PicMaxUrl = append(lti.PicMaxUrl, v.(string)) |
| | | } |
| | | } |
| | | lti.VideoUrl, ok = lm["videoUrl"].(string) |
| | | lti.PicDate, ok = lm["picDate"].(string) |
| | | if lm["targetInfo"] != nil { |