增加跨域配置,以及增加配置说明

This commit is contained in:
2020-02-20 14:20:56 +08:00
parent 9070bd2fe7
commit 0f29b3304e
23 changed files with 255 additions and 144 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ func Down(url, path, name string) bool {
}
defer out.Close()
resp, err := http.Get(url)
if err!=nil{
if err != nil {
return false
}
defer resp.Body.Close()