123
This commit is contained in:
@@ -294,14 +294,14 @@ func (a *API) SkuList(shopID string, params *SkuListParams) (skuInfo *PageDataIn
|
||||
}
|
||||
|
||||
// 饿百商品名可以相同,不会报错
|
||||
func (a *API) SkuCreate(trackInfo, shopID string, customSkuID string, params map[string]interface{}) (skuID int64, err error) {
|
||||
func (a *API) SkuCreate(trackInfo, shopID string, customSkuID int64, 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-" + "customSkuID"
|
||||
defParams["upc"] = "upc-" + utils.Int2Str(int(customSkuID))
|
||||
}
|
||||
/*if params["brand_id"] == nil {
|
||||
defParams["brand_id"] = 0
|
||||
|
||||
Reference in New Issue
Block a user