From e25ce112a3af7a965752596382f3c7f0f1620d83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 20 Sep 2023 13:54:26 +0800 Subject: [PATCH] 1 --- platformapi/jdapi/store.go | 3 ++- platformapi/tao_vegetable/afs_test.go | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/platformapi/jdapi/store.go b/platformapi/jdapi/store.go index 703a9129..2726ebf7 100644 --- a/platformapi/jdapi/store.go +++ b/platformapi/jdapi/store.go @@ -51,7 +51,7 @@ const ( ) const ( - MaxStoreNameLen = 13 // 门店名称最大长度(2个英文或数字算一位) + MaxStoreNameLen = 100 // 门店名称最大长度(2个英文或数字算一位) ) type CreateShopResult struct { @@ -343,6 +343,7 @@ func (a *API) UpdateStoreInfo4Open2(updateParams *OpStoreParams, modifyCloseStat if !modifyCloseStatus { delete(mapData, "closeStatus") } + delete(mapData, "storeNotice") // 这个限制长度100个汉字老是超长!直接不修改了! // else { // jdStoreID, err := a.GetJdStoreID(int(utils.Str2Int64(updateParams.OutSystemID))) // if err != nil { diff --git a/platformapi/tao_vegetable/afs_test.go b/platformapi/tao_vegetable/afs_test.go index b1056f52..2f4b1c68 100644 --- a/platformapi/tao_vegetable/afs_test.go +++ b/platformapi/tao_vegetable/afs_test.go @@ -1,6 +1,7 @@ package tao_vegetable import ( + "fmt" domain2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/domain" request2 "git.rosy.net.cn/baseapi/platformapi/tao_vegetable/sdk/ability3156/request" "git.rosy.net.cn/baseapi/utils" @@ -34,3 +35,7 @@ func TestDiseAgreeCancel(t *testing.T) { err := apiTao.DisAgreeUserCancel(param) globals.SugarLogger.Debugf("err := %v", err) } + +func TestLen(t *testing.T) { + fmt.Println(len("【平台推荐】\\u0026【官方认证】\\u0026【品质联盟】——请各位顾客放心下单!!!本店线下实体经营十余年,在此承诺,坏菜包赔,绝不出售隔夜菜,若出现错送或者质量问题,请相信我们不是故意的,您可第一时间与我们联系,我们一定竭诚为您服务,感谢您的信任!谢谢!")) +}