This commit is contained in:
苏尹岚
2020-12-03 16:20:11 +08:00
parent 77183df91d
commit 99d712b5de

View File

@@ -1630,6 +1630,9 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
if strings.Contains(storeName, "") {
storeName = storeName[0:strings.Index(storeName, "")] + storeName[strings.Index(storeName, "")+3:len(storeName)]
}
if strings.Contains(storeName, "(") {
storeName = storeName[0:strings.Index(storeName, "(")] + storeName[strings.Index(storeName, ")")+1:len(storeName)]
}
if strings.Contains(storeName, ".") {
storeName = storeName[0:strings.Index(storeName, ".")] + storeName[strings.Index(storeName, ".")+1:len(storeName)]
}
@@ -1641,7 +1644,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
}
storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店"
if len(storeName) > 30 {
storeName = storeName[:30]
storeName = storeName[:28]
}
param := &jdshopapi.UpdateBasicParam{
StoreName: storeName,