fix
liuxiaolong
2019-11-13 263c7b18ce7f18f1222318f6e0e499e907895a52
extend/esutil/EsClient.go
@@ -44,7 +44,7 @@
      sources := []interface{}{}
      for _, value := range dat["hits"].([]interface{}) {
         source := value.(map[string]interface{})["_source"].(map[string]interface{})
         source["id"] = value.(map[string]interface{})["id"]
         //source["id"] = source["id"]
         /*sdkType := source["sdkType"]
         if sdkType != nil {
            sdk, _ := strconv.Atoi(sdkType.(string))
@@ -303,3 +303,17 @@
   }
   return sources, nil
}
func HttpGet(str string) ([]byte){
   resp, err :=   http.Get(str)
   if err != nil {
      // handle error
   }
   defer resp.Body.Close()
   body, err := ioutil.ReadAll(resp.Body)
   if err != nil {
      // handle error
   }
   return body
}