diff --git a/weipinshang_api/wei_pin_shang_client.go b/weipinshang_api/wei_pin_shang_client.go index 12024d6..7c2ec1b 100644 --- a/weipinshang_api/wei_pin_shang_client.go +++ b/weipinshang_api/wei_pin_shang_client.go @@ -33,7 +33,7 @@ func (w *WeiPinShangClient) GetManyPostage(getManyPostageReq *GetManyPostageReq) fmt.Println("getManyPostageReq", getManyPostageReq) paramMap := make(map[string]any) - paramMap["goodInfo"] = getManyPostageReq.GoodsInfo + paramMap["goodsInfo"] = getManyPostageReq.GoodsInfo paramMap["address"] = getManyPostageReq.Address paramMap["province"] = getManyPostageReq.Province paramMap["county"] = getManyPostageReq.County diff --git a/weipinshang_api/wei_pin_shang_client_test.go b/weipinshang_api/wei_pin_shang_client_test.go index fc35ba0..96b49fb 100644 --- a/weipinshang_api/wei_pin_shang_client_test.go +++ b/weipinshang_api/wei_pin_shang_client_test.go @@ -29,7 +29,7 @@ func TestWeiPinShangClient_GetManyPostage(t *testing.T) { Key: "f654ea5bde7635c3f46191191e5c4c8e", }, args: GetManyPostageReq{ - GoodsInfo: "[{\"goodsId\":\"WPS592_00019\",\"goodSpecId\":\"WPS592_1105165115160944\",\"num\":1},{\"goodsId\":\"WPS505_00007\",\"goodSpecId\":\"WPS505_1007111249857536\",\"num\":1}]", + GoodsInfo: "[{\"goodsId\":\"WPS427_adf0008\",\"goodSpecId\":\"WPS427_0715110641454716\",\"num\":1}]", Province: "广东省", Address: "奥园", City: "广州市", @@ -80,14 +80,14 @@ func TestWeiPinShangClient_PreOrder(t *testing.T) { Key: "f654ea5bde7635c3f46191191e5c4c8e", }, args: PreOrderReq{ - GoodsInfo: "[{\"goodsId\":\"WPS2_1231155626421463\",\"goodSpecId\":\"WPS2_12311556265677476\",\"num\":1}]", + GoodsInfo: "[{\"goodsId\":\"WPS427_adf0008\",\"goodSpecId\":\"WPS427_0715110641454716\",\"num\":1}]", Province: "广东省", Address: "奥园", City: "广州市", Area: "番禺区", ConsigneePhone: "15375390426", ConsigneeContacts: "张三", - LockCode: "L100000004", + LockCode: "L100000005", Source: "AILEHUI", }, },