This commit is contained in:
苏尹岚
2020-12-03 15:10:42 +08:00
parent a44c12e83b
commit f9834f82f1

View File

@@ -1633,6 +1633,12 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
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)]
}
if len(storeName) > 30 {
storeName = storeName[:30]
}
param := &jdshopapi.UpdateBasicParam{
StoreName: "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店",
CategoryID2: 4,