123
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -324,9 +324,9 @@ type ShopList struct {
|
||||
}
|
||||
|
||||
type StoreShowWindowSkuList struct {
|
||||
SkuID string `json:"sku_id"`
|
||||
UpcID string `json:"upc_id"`
|
||||
Wid string `json:"wid"`
|
||||
SkuID string `json:"sku_id"`
|
||||
UpcID string `json:"upc_id"`
|
||||
Wid string `json:"wid"`
|
||||
//UpcType string `json:"upc_type"`
|
||||
UpdateTime string `json:"update_time"`
|
||||
ShelfNumber string `json:"shelf_number"`
|
||||
@@ -486,12 +486,12 @@ type EbaiSku struct {
|
||||
ProcessDetail []interface{} `json:"process_detail"`
|
||||
IsInActivity int `json:"is_in_activity"`
|
||||
//UpcType string `json:"upc_type"`
|
||||
UpcName string `json:"upc_name"`
|
||||
BrandID string `json:"brand_id"`
|
||||
Description string `json:"description"`
|
||||
Rtf string `json:"rtf"`
|
||||
Summary string `json:"summary"`
|
||||
Photos []struct {
|
||||
UpcName string `json:"upc_name"`
|
||||
BrandID string `json:"brand_id"`
|
||||
Description string `json:"description"`
|
||||
Rtf string `json:"rtf"`
|
||||
Summary string `json:"summary"`
|
||||
Photos []struct {
|
||||
URL string `json:"url"`
|
||||
IsMaster int `json:"is_master"`
|
||||
} `json:"photos"`
|
||||
@@ -574,8 +574,8 @@ type EbaiSku struct {
|
||||
}
|
||||
|
||||
type EbaiSkuList struct {
|
||||
UpcID string `json:"upc_id"`
|
||||
/UpcType string `json:"upc_type"`
|
||||
UpcID string `json:"upc_id"`
|
||||
//UpcType string `json:"upc_type"`
|
||||
Photos string `json:"photos"`
|
||||
UpcName string `json:"upc_name"`
|
||||
Upc string `json:"upc"`
|
||||
|
||||
Reference in New Issue
Block a user