This commit is contained in:
邹宗楠
2021-12-13 18:06:28 +08:00
parent 43b83a8656
commit 931b22f0d5
2 changed files with 5 additions and 5 deletions

View File

@@ -303,12 +303,12 @@ func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[
defParams["upc_type"] = UPCTypePrivate defParams["upc_type"] = UPCTypePrivate
defParams["upc"] = "upc-" + utils.Int2Str(int(customSkuID)) defParams["upc"] = "upc-" + utils.Int2Str(int(customSkuID))
} }
if params["brand_id"] == nil { /*if params["brand_id"] == nil {
defParams["brand_id"] = 0 defParams["brand_id"] = 0
} }
if params["brand_name"] == nil { if params["brand_name"] == nil {
defParams["brand_name"] = "无" // 很狗血的是,你还必须填个无才行。。。 defParams["brand_name"] = "无" // 很狗血的是,你还必须填个无才行。。。
} }*/
params = utils.MergeMaps(params, defParams) params = utils.MergeMaps(params, defParams)
// baseapi.SugarLogger.Debugf(utils.Format4Output(params, false)) // baseapi.SugarLogger.Debugf(utils.Format4Output(params, false))
result, err := a.AccessAPI2("sku.create", params, trackInfo) result, err := a.AccessAPI2("sku.create", params, trackInfo)

View File

@@ -327,7 +327,7 @@ type StoreShowWindowSkuList struct {
SkuID string `json:"sku_id"` SkuID string `json:"sku_id"`
UpcID string `json:"upc_id"` UpcID string `json:"upc_id"`
Wid string `json:"wid"` Wid string `json:"wid"`
UpcType string `json:"upc_type"` //UpcType string `json:"upc_type"`
UpdateTime string `json:"update_time"` UpdateTime string `json:"update_time"`
ShelfNumber string `json:"shelf_number"` ShelfNumber string `json:"shelf_number"`
LeftNum string `json:"left_num"` LeftNum string `json:"left_num"`
@@ -485,7 +485,7 @@ type EbaiSku struct {
ProcessType int `json:"process_type"` ProcessType int `json:"process_type"`
ProcessDetail []interface{} `json:"process_detail"` ProcessDetail []interface{} `json:"process_detail"`
IsInActivity int `json:"is_in_activity"` IsInActivity int `json:"is_in_activity"`
UpcType string `json:"upc_type"` //UpcType string `json:"upc_type"`
UpcName string `json:"upc_name"` UpcName string `json:"upc_name"`
BrandID string `json:"brand_id"` BrandID string `json:"brand_id"`
Description string `json:"description"` Description string `json:"description"`
@@ -575,7 +575,7 @@ type EbaiSku struct {
type EbaiSkuList struct { type EbaiSkuList struct {
UpcID string `json:"upc_id"` UpcID string `json:"upc_id"`
UpcType string `json:"upc_type"` /UpcType string `json:"upc_type"`
Photos string `json:"photos"` Photos string `json:"photos"`
UpcName string `json:"upc_name"` UpcName string `json:"upc_name"`
Upc string `json:"upc"` Upc string `json:"upc"`