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