修改
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
jhc 2023-12-13 13:22:55 +08:00
parent 6ba25481df
commit 90e03feeda

View File

@ -58,7 +58,8 @@ func PutFromFileUrlWithStream(url, fileName, fileUrl string) (statusCode int, re
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
//panic(err)
return 400, "执行文件上传失败"
}
defer resp.Body.Close()
statusCode = resp.StatusCode