From f9834f82f174a385488258056c5a2e1c79675567 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 15:10:42 +0800 Subject: [PATCH] a --- business/jxstore/tempop/tempop.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 8ac5a9fcc..1c9075e26 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -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,