Browse Source

增加打印。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
b22f36ba7f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      routers/repo/aisafety.go

+ 2
- 2
routers/repo/aisafety.go View File

@@ -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
} }

Loading…
Cancel
Save