根据excel创建标品解决图片上传
This commit is contained in:
@@ -464,7 +464,6 @@ 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 {
|
||||
|
||||
Reference in New Issue
Block a user