This commit is contained in:
苏尹岚
2020-12-03 16:39:53 +08:00
parent e99739d3ef
commit a73cba5328

View File

@@ -1634,13 +1634,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) {
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)]
} }
if strings.Contains(storeName, ".") { if strings.Contains(storeName, ".") {
storeName = storeName[0:strings.Index(storeName, ".")] + storeName[strings.Index(storeName, ".")+1:len(storeName)] storeName = strings.ReplaceAll(storeName, ".", "")
} }
if strings.Contains(storeName, "-") { if strings.Contains(storeName, "-") {
storeName = storeName[0:strings.Index(storeName, "-")] + storeName[strings.Index(storeName, "-")+1:len(storeName)] storeName = strings.ReplaceAll(storeName, "-", "")
} }
if strings.Contains(storeName, " ") { if strings.Contains(storeName, " ") {
storeName = storeName[0:strings.Index(storeName, " ")] + storeName[strings.Index(storeName, " ")+1:len(storeName)] storeName = strings.ReplaceAll(storeName, " ", "")
} }
storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店" storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店"
if len(storeName) > 30 { if len(storeName) > 30 {