diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index 902114b71..cc48d757c 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -181,13 +181,13 @@ func getJsonContent(url string) (map[string]interface{}, error) { log.Info("Get organizations url error=" + err.Error()) return nil, err } + log.Info("json str =" + string(bytes)) + jsonMap := make(map[string]interface{}) err = json.Unmarshal(bytes, &jsonMap) if err != nil { log.Info("json err=" + err.Error()) - } else { - log.Info("json str =" + string(bytes)) } return jsonMap, nil }