From a232618356559710e102d1f71243b6b86d0b4918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 29 Mar 2023 13:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BE=8E=E5=9B=A2=E5=8A=9B=E8=8D=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/ebaiapi/sku_test.go | 3 +-- platformapi/mtwmapi/act_test.go | 14 +++++++++----- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/platformapi/ebaiapi/sku_test.go b/platformapi/ebaiapi/sku_test.go index 7c8f82f4..3fcaa987 100644 --- a/platformapi/ebaiapi/sku_test.go +++ b/platformapi/ebaiapi/sku_test.go @@ -1,9 +1,8 @@ package ebaiapi import ( - "testing" - "git.rosy.net.cn/baseapi/utils" + "testing" ) func TestSkuCategoryList(t *testing.T) { diff --git a/platformapi/mtwmapi/act_test.go b/platformapi/mtwmapi/act_test.go index 5e0a7040..a3f81b76 100644 --- a/platformapi/mtwmapi/act_test.go +++ b/platformapi/mtwmapi/act_test.go @@ -1,6 +1,7 @@ package mtwmapi import ( + "fmt" "git.rosy.net.cn/jx-callback/globals" "testing" "time" @@ -191,6 +192,13 @@ func TestGetByAppPoiCodeAndType(t *testing.T) { t.Log(utils.Format4Output(result, false)) } +func TestSgin(t *testing.T) { + timestamp := time.Now().Unix() + sign := api.signParams("https://waimaiopen.meituan.com/api/v1/wm/IM/getConnectionToken", map[string]interface{}{"timestamp": timestamp, "app_id": 589}) + fmt.Println(sign) + fmt.Println(timestamp) +} + func TestBaokuanHuodong(t *testing.T) { // 获取门店所有的爆款活动 storeId := 668887 @@ -220,11 +228,7 @@ func TestBaokuanHuodong(t *testing.T) { loseActivitySkuIdList = append(loseActivitySkuIdList, lose) } } - // 取消当前力荐商品 - loseActivitySkuIdList = append(loseActivitySkuIdList, &StoreSkuInfo{ - SkuID: utils.Str2Int("31794"), - IsSpecialty: 0, - }) + if err := UpdateStoreSkusSpecTag(nil, "589", storeId, vendorStoreId, loseActivitySkuIdList); err != nil { globals.SugarLogger.Debugf("取消力荐错误:= %v", err) }