diff --git a/platformapi/jdshopapi/store_page.go b/platformapi/jdshopapi/store_page.go index 2a4276c6..96d51fba 100644 --- a/platformapi/jdshopapi/store_page.go +++ b/platformapi/jdshopapi/store_page.go @@ -240,7 +240,7 @@ type CreateShopCategoryParam struct { //京东商城创建或修改店内分类 //https://seller.shop.jd.com/vendershop/vendershop_shopCategory.action# func (a *API) CreateShopCategory(createShopCategoryParam []*CreateShopCategoryParam) (status int64, err error) { - data, _ := json.Marshal(createShopCategoryParam) + data, _ := json.MarshalIndent(createShopCategoryParam, "", "") result, err := a.AccessStorePage(categoryURL, map[string]interface{}{ "categoryJson": string(data), }, true)