From 7d7ad2c725b1c19b34921e6d3ba11dbcb9b913ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 13 May 2020 10:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=AC=E4=B8=9C=E5=95=86=E5=9F=8E=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=95=86=E5=93=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platformapi/jdshopapi/sku.go | 2 +- platformapi/jdshopapi/sku_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) }