From 72884192af75145033e205e0d3d120336d49da06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 26 Jan 2024 15:58:16 +0800 Subject: [PATCH] 1 --- platformapi/ebaiapi/shop_sku.go | 5 +++++ platformapi/ebaiapi/shop_sku_test.go | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/platformapi/ebaiapi/shop_sku.go b/platformapi/ebaiapi/shop_sku.go index 3bff2fd4..eb7b90c7 100644 --- a/platformapi/ebaiapi/shop_sku.go +++ b/platformapi/ebaiapi/shop_sku.go @@ -2,6 +2,7 @@ package ebaiapi import ( "fmt" + "git.rosy.net.cn/jx-callback/globals" "regexp" "strings" @@ -321,6 +322,10 @@ func (a *API) SkuList(shopID string, params *SkuListParams) (skuInfo *PageDataIn // 饿百商品名可以相同,不会报错 func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[string]interface{}) (skuID int64, err error) { + globals.SugarLogger.Debugf("======== %s", trackInfo) + globals.SugarLogger.Debugf("======== %s", shopID) + globals.SugarLogger.Debugf("======== %d", customSkuID) + globals.SugarLogger.Debugf("======== %s", utils.Format4Output(params, false)) defParams := map[string]interface{}{ KeyShopID: shopID, KeyCustomSkuID: customSkuID, diff --git a/platformapi/ebaiapi/shop_sku_test.go b/platformapi/ebaiapi/shop_sku_test.go index e386b097..da4ca268 100644 --- a/platformapi/ebaiapi/shop_sku_test.go +++ b/platformapi/ebaiapi/shop_sku_test.go @@ -17,7 +17,7 @@ func TestShopCategoryCreate(t *testing.T) { } func TestShopCategoryGet(t *testing.T) { - result, err := api.ShopCategoryGet("800493") + result, err := api.ShopCategoryGet("800437") if err != nil { t.Fatal(err) } else { @@ -26,7 +26,7 @@ func TestShopCategoryGet(t *testing.T) { } func TestShopGet222(t *testing.T) { - api.ShopGet("800493", 0) + api.ShopGet("800437", 0) } func TestShopCategoryUpdate(t *testing.T) { @@ -53,7 +53,7 @@ func TestSkuGetItemsByCategoryId(t *testing.T) { } func TestSkuList(t *testing.T) { - result, err := api.SkuList("667544", &SkuListParams{}) + result, err := api.SkuList("800493", &SkuListParams{}) if err != nil { t.Fatal(err) } else {