This commit is contained in:
邹宗楠
2021-12-14 10:28:33 +08:00
parent a2fa9bf427
commit 9d4ec65dc1

View File

@@ -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