From 99d712b5deea541cf4c071f218163984999e246c 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:20:11 +0800 Subject: [PATCH] a --- business/jxstore/tempop/tempop.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 839778aa6..bd566e23c 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -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,