123
This commit is contained in:
@@ -51,12 +51,12 @@ type SkuListParams struct {
|
||||
Upc string `json:"upc,omitempty"`
|
||||
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"`
|
||||
//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"`
|
||||
}
|
||||
|
||||
type SkuPhotoInfo struct {
|
||||
@@ -92,10 +92,10 @@ type SkuInfo struct {
|
||||
ShelfNumber string `json:"shelf_number"`
|
||||
SkuID int64 `json:"sku_id"`
|
||||
// SkuProperty []interface{} `json:"sku_property"`
|
||||
Status int `json:"status"`
|
||||
Summary string `json:"summary"`
|
||||
Upc string `json:"upc"`
|
||||
UpcType string `json:"upc_type"`
|
||||
Status int `json:"status"`
|
||||
Summary string `json:"summary"`
|
||||
Upc string `json:"upc"`
|
||||
//UpcType string `json:"upc_type"`
|
||||
UpdateTime string `json:"update_time"`
|
||||
Weight int `json:"weight"`
|
||||
WeightFlag int `json:"weight_flag"`
|
||||
@@ -294,14 +294,14 @@ func (a *API) SkuList(shopID string, params *SkuListParams) (skuInfo *PageDataIn
|
||||
}
|
||||
|
||||
// 饿百商品名可以相同,不会报错
|
||||
func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, params map[string]interface{}) (skuID int64, err error) {
|
||||
func (a *API) SkuCreate(trackInfo, shopID string, customSkuID string, params map[string]interface{}) (skuID int64, err error) {
|
||||
defParams := map[string]interface{}{
|
||||
KeyShopID: shopID,
|
||||
KeyCustomSkuID: customSkuID,
|
||||
}
|
||||
if params["upc"] == nil {
|
||||
defParams["upc_type"] = UPCTypePrivate
|
||||
defParams["upc"] = "upc-" + utils.Int2Str(int(customSkuID))
|
||||
// defParams["upc_type"] = UPCTypePrivate
|
||||
defParams["upc"] = "upc-" + "customSkuID"
|
||||
}
|
||||
/*if params["brand_id"] == nil {
|
||||
defParams["brand_id"] = 0
|
||||
|
||||
Reference in New Issue
Block a user