diff --git a/platformapi/jdshopapi/sku.go b/platformapi/jdshopapi/sku.go index c42334cc..33c859fc 100644 --- a/platformapi/jdshopapi/sku.go +++ b/platformapi/jdshopapi/sku.go @@ -139,7 +139,7 @@ type CreateSkuResult struct { } type UpdateWareParam struct { - WareID int `json:"wareId"` + WareID int64 `json:"wareId"` Title string `json:"title"` //否 标题 商品名称 限制45个字符内 Weight int `json:"weight"` //否 无 商品重量,单位kg } diff --git a/platformapi/jdshopapi/sku_test.go b/platformapi/jdshopapi/sku_test.go index e91ba06e..a1ecb630 100644 --- a/platformapi/jdshopapi/sku_test.go +++ b/platformapi/jdshopapi/sku_test.go @@ -234,7 +234,7 @@ func TestFindValuesByAttrId(t *testing.T) { } func TestSaveVenderAttrValue(t *testing.T) { - err := api.SaveVenderAttrValue("100g", 1001027606, 13577, 2) + _, err := api.SaveVenderAttrValue("100g", 1001027606, 13577, 2) if err != nil { t.Fatal(err) }