This commit is contained in:
邹宗楠
2026-07-10 13:57:59 +08:00
parent 9054474ea0
commit 6aaf10c5a6
3 changed files with 5 additions and 5 deletions

View File

@@ -322,13 +322,13 @@ 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 utils.IsNil(params["upc"]) {
params["upc"] = "upc-" + utils.Int2Str(int(customSkuID))
params["upc"] = "upc-" + customSkuID
}
/*if params["brand_id"] == nil {
defParams["brand_id"] = 0