From f52ffa5a89f7cc59099afaec7cbeba00120a78c7 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Fri, 8 Sep 2023 14:54:43 +0800 Subject: [PATCH] 1 --- platformapi/mtwmapi/retail_test.go | 6 +++++- platformapi/sfps2/sf_model.go | 18 ++++++++++++++++-- platformapi/tao_vegetable/store_test.go | 10 ++++++---- 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/platformapi/mtwmapi/retail_test.go b/platformapi/mtwmapi/retail_test.go index 1011db01..20c2689f 100644 --- a/platformapi/mtwmapi/retail_test.go +++ b/platformapi/mtwmapi/retail_test.go @@ -387,10 +387,14 @@ func TestCategoryAttrList(t *testing.T) { //特殊属性查询 func TestCategoryAttrValueList(t *testing.T) { - result, err := api.CategoryAttrValueList(1200000088, "散装糖果") + result, err := api.CategoryAttrValueList(1200000088, "【常用调味】干花椒 红花椒 ") + if len(result) > 0 { + fmt.Println("jejeje") + } if err != nil { t.Fatal(err) } + t.Log(utils.Format4Output(result, false)) } diff --git a/platformapi/sfps2/sf_model.go b/platformapi/sfps2/sf_model.go index 61896fab..32731930 100644 --- a/platformapi/sfps2/sf_model.go +++ b/platformapi/sfps2/sf_model.go @@ -20,7 +20,7 @@ const ( DefaultVersion = 19 //参照文档主版本号填写 如:文档版本号1.9,version=19,推荐使用版本19 ) -//各城市正式店铺id +// SFCityStoreIDs 各城市正式店铺id var SFCityStoreIDs = map[string]string{ "怀化市": "3270454065601", "郴州市": "3270454085329", @@ -51,7 +51,7 @@ var SFCityStoreIDs = map[string]string{ "许昌市": "3270458247585", "开封市": "3270458296977", "商丘市": "3270641341457", - "驻马店市": "3270641372769", + "驻马市": "3270641372769", "新乡市": "3270641398977", "信阳市": "3270641464177", "安阳市": "3270641489553", @@ -67,6 +67,20 @@ var SFCityStoreIDs = map[string]string{ "承德市": "3270459200625", "秦皇岛市": "3270459223617", "张家口市": "3270459240321", + "武汉市": "3270468391969", + "襄阳市": "3270468418785", + "宜昌市": "3270468434017", + "荆州市": "3270468445137", + "荆门市": "3270468456545", + "孝感市": "3270468472897", + "鄂州店": "3270527285137", + "黄石市": "3270527303521", + "南宁市": "3270650685793", + "桂林市": "3270650714881", + "三亚市": "3270650742017", + "海口市": "3270650813681", + "柳州市": "3270650844193", + "北海市": "3270650890577", } const ( diff --git a/platformapi/tao_vegetable/store_test.go b/platformapi/tao_vegetable/store_test.go index f9aa2a8e..f8472323 100644 --- a/platformapi/tao_vegetable/store_test.go +++ b/platformapi/tao_vegetable/store_test.go @@ -138,10 +138,12 @@ func TestUpdateStoreTest(t *testing.T) { } func TestShopUpdateStatus(t *testing.T) { - err := apiTao.ShopUpdateStatus("JX667321", 1) - if err != nil { - fmt.Println(err) - } + value := int(172736400) + fmt.Println(float64(value) / 1000000) + //err := apiTao.ShopUpdateStatus("JX667321", 1) + //if err != nil { + // fmt.Println(err) + //} } func TestSFStore(t *testing.T) {