|
|
@@ -181,13 +181,13 @@ func getJsonContent(url string) (map[string]interface{}, error) { |
|
|
log.Info("Get organizations url error=" + err.Error()) |
|
|
log.Info("Get organizations url error=" + err.Error()) |
|
|
return nil, err |
|
|
return nil, err |
|
|
} |
|
|
} |
|
|
|
|
|
log.Info("json str =" + string(bytes)) |
|
|
|
|
|
|
|
|
jsonMap := make(map[string]interface{}) |
|
|
jsonMap := make(map[string]interface{}) |
|
|
|
|
|
|
|
|
err = json.Unmarshal(bytes, &jsonMap) |
|
|
err = json.Unmarshal(bytes, &jsonMap) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
log.Info("json err=" + err.Error()) |
|
|
log.Info("json err=" + err.Error()) |
|
|
} else { |
|
|
|
|
|
log.Info("json str =" + string(bytes)) |
|
|
|
|
|
} |
|
|
} |
|
|
return jsonMap, nil |
|
|
return jsonMap, nil |
|
|
} |
|
|
} |