aa
This commit is contained in:
@@ -1616,9 +1616,12 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
|
|||||||
if !strings.Contains(ex, "00:00:00") {
|
if !strings.Contains(ex, "00:00:00") {
|
||||||
ex += " 00:00:00"
|
ex += " 00:00:00"
|
||||||
}
|
}
|
||||||
|
var url2 string
|
||||||
|
if store.Licence != "" {
|
||||||
data2, _, _ := jxutils.DownloadFileByURL(store.Licence)
|
data2, _, _ := jxutils.DownloadFileByURL(store.Licence)
|
||||||
fileName := store.Licence[strings.LastIndex(store.Licence, "/")+1 : len(store.Licence)]
|
fileName := store.Licence[strings.LastIndex(store.Licence, "/")+1 : len(store.Licence)]
|
||||||
url2, _ := api.JdShop2API.UploadImageNew(data2, fileName)
|
url2, _ = api.JdShop2API.UploadImageNew(data2, fileName)
|
||||||
|
}
|
||||||
storeName := store.Name
|
storeName := store.Name
|
||||||
if strings.Contains(storeName, "(") {
|
if strings.Contains(storeName, "(") {
|
||||||
storeName = storeName[0:strings.Index(storeName, "(")] + storeName[strings.Index(storeName, ")")+3:len(storeName)]
|
storeName = storeName[0:strings.Index(storeName, "(")] + storeName[strings.Index(storeName, ")")+3:len(storeName)]
|
||||||
|
|||||||
Reference in New Issue
Block a user