This commit is contained in:
邹宗楠
2024-01-26 17:28:00 +08:00
parent 5503679e94
commit b98bbba9f4

View File

@@ -2,7 +2,6 @@ package ebaiapi
import (
"fmt"
"git.rosy.net.cn/jx-callback/globals"
"regexp"
"strings"
@@ -53,11 +52,12 @@ type SkuListParams struct {
SkuID int64 `json:"sku_id,omitempty"`
CustomSkuID string `json:"custom_sku_id,omitempty"`
//UpcType int `json:"upc_type,omitempty"`
GetUncate int `json:"get_uncate,omitempty"`
Delete int `json:"delete,omitempty"`
Enabled int `json:"enabled,omitempty"`
StartTime int `json:"start_time,omitempty"`
EndTime int `json:"end_time,omitempty"`
GetUncate int `json:"get_uncate,omitempty"`
Delete int `json:"delete,omitempty"`
Enabled int `json:"enabled,omitempty"`
StartTime int `json:"start_time,omitempty"`
EndTime int `json:"end_time,omitempty"`
SkuIdOffset int `json:"sku_id_offset,omitempty"`
}
type SkuPhotoInfo struct {
@@ -336,7 +336,6 @@ func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[
if params["brand_name"] == nil {
defParams["brand_name"] = "无" // 很狗血的是,你还必须填个无才行。。。
}*/
globals.SugarLogger.Debugf("===========:%s", utils.Format4Output(params, false))
params = utils.MergeMaps(params, defParams)
result, err := a.AccessAPI2("sku.create", params, trackInfo)
if err == nil && result.Data != nil {