- remove useless param cagtegoryId, shopCategories and brandId for jdapi.AppendSku
This commit is contained in:
@@ -462,7 +462,7 @@ func (a *API) AddSpu(outSpuId string, cagtegoryId int, shopCategories []int64, b
|
|||||||
|
|
||||||
// 追加新的SKU到指定的SPU接口
|
// 追加新的SKU到指定的SPU接口
|
||||||
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=cffb839b06f042b28d6397b6bd4f2676
|
// https://opendj.jd.com/staticnew/widgets/resources.html?groupid=180&apiid=cffb839b06f042b28d6397b6bd4f2676
|
||||||
func (a *API) AppendSku(outSpuId string, outSkuId string, cagtegoryId int, shopCategories []int64, brandId int, skuName string, skuPrice int, weight float32, images []string, fixedStatus int, isSale bool, specAttr string, addParams map[string]interface{}) (skuID int64, err error) {
|
func (a *API) AppendSku(outSpuId string, outSkuId string, skuName string, skuPrice int, weight float32, images []string, fixedStatus int, isSale bool, specAttr string, addParams map[string]interface{}) (skuID int64, err error) {
|
||||||
attr := specAttr //getSkuAttr(weight)
|
attr := specAttr //getSkuAttr(weight)
|
||||||
if err = a.AppendSpuSaleAttr(outSpuId, "1001", attr); err != nil {
|
if err = a.AppendSpuSaleAttr(outSpuId, "1001", attr); err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
@@ -471,9 +471,6 @@ func (a *API) AppendSku(outSpuId string, outSkuId string, cagtegoryId int, shopC
|
|||||||
fixedParams := map[string]interface{}{
|
fixedParams := map[string]interface{}{
|
||||||
KeyOutSpuId: outSpuId,
|
KeyOutSpuId: outSpuId,
|
||||||
KeyOutSkuId: outSkuId,
|
KeyOutSkuId: outSkuId,
|
||||||
KeyCategoryId: cagtegoryId,
|
|
||||||
KeyShopCategories: shopCategories,
|
|
||||||
KeyBrandId: brandId,
|
|
||||||
KeySkuName: skuName,
|
KeySkuName: skuName,
|
||||||
KeySkuPrice: skuPrice,
|
KeySkuPrice: skuPrice,
|
||||||
KeyWeight: weight,
|
KeyWeight: weight,
|
||||||
|
|||||||
Reference in New Issue
Block a user