From 931b22f0d51fa7148f8b3469063389b7e35c6965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 13 Dec 2021 18:06:28 +0800 Subject: [PATCH] 123 --- platformapi/ebaiapi/shop_sku.go | 4 ++-- platformapi/ebaiapi/store_page.go | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/platformapi/ebaiapi/shop_sku.go b/platformapi/ebaiapi/shop_sku.go index abc8dc77..1be3333a 100644 --- a/platformapi/ebaiapi/shop_sku.go +++ b/platformapi/ebaiapi/shop_sku.go @@ -303,12 +303,12 @@ func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[ defParams["upc_type"] = UPCTypePrivate defParams["upc"] = "upc-" + utils.Int2Str(int(customSkuID)) } - if params["brand_id"] == nil { + /*if params["brand_id"] == nil { defParams["brand_id"] = 0 } if params["brand_name"] == nil { defParams["brand_name"] = "无" // 很狗血的是,你还必须填个无才行。。。 - } + }*/ params = utils.MergeMaps(params, defParams) // baseapi.SugarLogger.Debugf(utils.Format4Output(params, false)) result, err := a.AccessAPI2("sku.create", params, trackInfo) diff --git a/platformapi/ebaiapi/store_page.go b/platformapi/ebaiapi/store_page.go index 82c79586..1c9b347d 100644 --- a/platformapi/ebaiapi/store_page.go +++ b/platformapi/ebaiapi/store_page.go @@ -327,7 +327,7 @@ type StoreShowWindowSkuList struct { SkuID string `json:"sku_id"` UpcID string `json:"upc_id"` Wid string `json:"wid"` - UpcType string `json:"upc_type"` + //UpcType string `json:"upc_type"` UpdateTime string `json:"update_time"` ShelfNumber string `json:"shelf_number"` LeftNum string `json:"left_num"` @@ -485,7 +485,7 @@ type EbaiSku struct { ProcessType int `json:"process_type"` ProcessDetail []interface{} `json:"process_detail"` IsInActivity int `json:"is_in_activity"` - UpcType string `json:"upc_type"` + //UpcType string `json:"upc_type"` UpcName string `json:"upc_name"` BrandID string `json:"brand_id"` Description string `json:"description"` @@ -575,7 +575,7 @@ type EbaiSku struct { type EbaiSkuList struct { UpcID string `json:"upc_id"` - UpcType string `json:"upc_type"` + /UpcType string `json:"upc_type"` Photos string `json:"photos"` UpcName string `json:"upc_name"` Upc string `json:"upc"`