|
|
@@ -154,6 +154,12 @@ func GetRecommendRepoFromPromote(filename string) ([]map[string]interface{}, err |
|
|
|
} |
|
|
|
|
|
|
|
func RecommendFromPromote(url string) ([]string, error) { |
|
|
|
defer func() { |
|
|
|
if err := recover(); err != nil { |
|
|
|
log.Info("not error.", err) |
|
|
|
return |
|
|
|
} |
|
|
|
}() |
|
|
|
resp, err := http.Get(url) |
|
|
|
if err != nil || resp.StatusCode != 200 { |
|
|
|
log.Info("Get organizations url error=" + err.Error()) |
|
|
|