diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 8697c9b35..df04332f2 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1616,9 +1616,12 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { if !strings.Contains(ex, "00:00:00") { ex += " 00:00:00" } - data2, _, _ := jxutils.DownloadFileByURL(store.Licence) - fileName := store.Licence[strings.LastIndex(store.Licence, "/")+1 : len(store.Licence)] - url2, _ := api.JdShop2API.UploadImageNew(data2, fileName) + var url2 string + if store.Licence != "" { + data2, _, _ := jxutils.DownloadFileByURL(store.Licence) + fileName := store.Licence[strings.LastIndex(store.Licence, "/")+1 : len(store.Licence)] + url2, _ = api.JdShop2API.UploadImageNew(data2, fileName) + } storeName := store.Name if strings.Contains(storeName, "(") { storeName = storeName[0:strings.Index(storeName, "(")] + storeName[strings.Index(storeName, ")")+3:len(storeName)]