diff --git a/weipinshang_api/res.go b/weipinshang_api/res.go index 11f9ef4..b876abc 100644 --- a/weipinshang_api/res.go +++ b/weipinshang_api/res.go @@ -36,8 +36,8 @@ type SkuData struct { GoodSpecId string `json:"goodSpecId"` //商品ID(c_goods_id) GoodsId string `json:"goodsId"` //商品ID(c_father_goods_id) GoodName string `json:"goodName"` //商品名称 - //Num string `json:"num"` //数量 - Num int `json:"num"` //数量 + Num string `json:"num"` //数量 + //Num int `json:"num"` //数量 Price string `json:"price"` //单价 } diff --git a/weipinshang_api/wei_pin_shang_client_test.go b/weipinshang_api/wei_pin_shang_client_test.go index 82e58a6..9dac5e0 100644 --- a/weipinshang_api/wei_pin_shang_client_test.go +++ b/weipinshang_api/wei_pin_shang_client_test.go @@ -80,14 +80,14 @@ func TestWeiPinShangClient_PreOrder(t *testing.T) { Key: "f654ea5bde7635c3f46191191e5c4c8e", }, args: PreOrderReq{ - GoodsInfo: "[{\"goodsId\":\"WPS9_282520\",\"goodSpecId\":\"WPS9_1221183858889276\",\"num\":2}]", + GoodsInfo: "[{\"goodsId\":\"WPS2_1231155626421463\",\"goodSpecId\":\"WPS2_12311556265677476\",\"num\":1}]", Province: "广东省", Address: "奥园", City: "广州市", Area: "番禺区", ConsigneePhone: "15375390426", ConsigneeContacts: "张三", - LockCode: "L100000000", + LockCode: "L100000002", Source: "AILEHUI", }, }, @@ -135,8 +135,8 @@ func TestWeiPinShangClient_CreateOrder(t *testing.T) { Key: "f654ea5bde7635c3f46191191e5c4c8e", }, args: CreateOrderReq{ - LockCode: "L100000000", - OrderNo: "30000000000", + LockCode: "L100000002", + OrderNo: "2000000001", }, }, }