From a73cba5328446e92d89bccd4159e8cb9dc8bf8a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 3 Dec 2020 16:39:53 +0800 Subject: [PATCH] a --- business/jxstore/tempop/tempop.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index cf5cf3404..d16c7f662 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1634,13 +1634,13 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { 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)] + storeName = strings.ReplaceAll(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, " ") { - storeName = storeName[0:strings.Index(storeName, " ")] + storeName[strings.Index(storeName, " ")+1:len(storeName)] + storeName = strings.ReplaceAll(storeName, " ", "") } storeName = "京西菜市" + strings.ReplaceAll(storeName, "店", "") + "生鲜店" if len(storeName) > 30 {