This commit is contained in:
邹宗楠
2025-08-05 16:20:28 +08:00
parent eb59d502e0
commit 28af82d606
6 changed files with 60 additions and 15 deletions

View File

@@ -328,7 +328,7 @@ func TestDeleteStoreSku(t *testing.T) {
}
func TestDeleteSku(t *testing.T) {
shopId := "102433"
shopId := "669283"
param1 := &SkuListParams{
Page: 1,
PageSize: 100,
@@ -358,4 +358,14 @@ func TestDeleteSku(t *testing.T) {
fmt.Println(data)
fmt.Println(err)
}
categoryList, _ := api.ShopCategoryGet(shopId)
for _, v := range categoryList {
if v.Children != nil {
for _, v2 := range v.Children {
api.ShopCategoryDelete(shopId, v2.CategoryID)
}
}
api.ShopCategoryDelete(shopId, v.CategoryID)
}
}