1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user