This commit is contained in:
suyl
2021-09-17 09:44:33 +08:00
parent e895a25b98
commit 737c14dd03
4 changed files with 6 additions and 6 deletions

View File

@@ -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.MarshalIndent(createShopCategoryParam, "", "")
data, _ := json.Marshal(createShopCategoryParam)
result, err := a.AccessStorePage(categoryURL, map[string]interface{}{
"categoryJson": string(data),
}, true)
@@ -742,9 +742,9 @@ func (a *API) SubmitBasic(updateBasicParam *UpdateBasicParam) (vendorStoreID int
}, true)
if err == nil {
if result != nil {
if result["data"] != nil{
if result["data"] != nil {
vendorStoreID = utils.MustInterface2Int64(result["data"])
}else{
} else {
err = fmt.Errorf("err %s", result["msg"])
}
}