This commit is contained in:
suyl
2021-09-17 10:14:15 +08:00
parent 7d2aba87db
commit 9b5146d105
2 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,6 @@ import (
"bytes"
"encoding/json"
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"math/rand"
"mime/multipart"
"net/http"
@@ -64,7 +63,7 @@ func (a *API) AccessStorePage(fullURL string, bizParams map[string]interface{},
request, _ = http.NewRequest(http.MethodGet, utils.GenerateGetURL(fullURL, "", bizParams), nil)
}
a.FillRequestCookies(request)
globals.SugarLogger.Debugf("AccessStorePageAccessStorePageAccessStorePage request", utils.Format4Output(request, true))
//globals.SugarLogger.Debugf("AccessStorePageAccessStorePageAccessStorePage request", utils.Format4Output(request, true))
return request
},
a.config,
@@ -240,7 +239,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)