This commit is contained in:
邹宗楠
2024-01-26 17:12:42 +08:00
parent f8f4606926
commit 5503679e94
2 changed files with 2 additions and 1 deletions

View File

@@ -313,6 +313,7 @@ func (a *API) SkuList(shopID string, params *SkuListParams) (skuInfo *PageDataIn
params.PageSize = 100
paramMap := utils.Struct2FlatMap(params)
paramMap[KeyShopID] = shopID
paramMap["include_cate_info"] = 1
result, err := a.AccessAPI("sku.list", paramMap)
if err == nil {
err = utils.Map2StructByJson(result.Data, &skuInfo, true)

View File

@@ -17,7 +17,7 @@ func TestShopCategoryCreate(t *testing.T) {
}
func TestShopCategoryGet(t *testing.T) {
result, err := api.ShopCategoryGet("800437")
result, err := api.ShopCategoryGet("800493")
if err != nil {
t.Fatal(err)
} else {