上传图片测试

This commit is contained in:
苏尹岚
2020-04-10 14:21:28 +08:00
parent a56667a83c
commit f9e6ab814e
2 changed files with 1 additions and 1 deletions

View File

@@ -464,6 +464,7 @@ func (s SkuList) Swap(i, j int) {
func DownloadFileByURL(fileURL string) (bodyData []byte, fileMD5 string, err error) {
response, err := http.Get(fileURL)
globals.SugarLogger.Debugf("TryRegisterDataResource2, response:%v", utils.Format4Output(response, false))
if err == nil {
defer response.Body.Close()
if response.StatusCode == http.StatusOK {