This commit is contained in:
邹宗楠
2021-12-13 18:12:15 +08:00
parent 6fa667e9af
commit 18126f6b73

View File

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