This commit is contained in:
邹宗楠
2024-01-26 15:58:16 +08:00
parent 4e6018a666
commit 72884192af
2 changed files with 8 additions and 3 deletions

View File

@@ -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,

View File

@@ -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 {