From 995cd34706a8e08a9e8dfb12ada6751ead9f57c8 Mon Sep 17 00:00:00 2001 From: Jerry <85411418@qq.com> Date: Mon, 13 Dec 2021 14:54:21 +0800 Subject: [PATCH] v1.5.66 --- constant.go | 2 +- release_note.txt | 4 ++++ wechat/v3/client_test.go | 9 ++++++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/constant.go b/constant.go index 7f726969..d30b864c 100644 --- a/constant.go +++ b/constant.go @@ -7,7 +7,7 @@ const ( OK = "OK" DebugOff = 0 DebugOn = 1 - Version = "1.5.65" + Version = "1.5.66" ) type DebugSwitch int8 diff --git a/release_note.txt b/release_note.txt index 7c87866f..180629bb 100644 --- a/release_note.txt +++ b/release_note.txt @@ -1,3 +1,7 @@ +版本号:Release 1.5.66 +修改记录: + (1) 微信V3:fix bug that `{"code":"PARAM_ERROR","message":"平台证书序列号Wechatpay-Serial错误"}` + 版本号:Release 1.5.65 修改记录: (1) 微信V3:新增 client.V3EcommerceApply(),二级商户进件 diff --git a/wechat/v3/client_test.go b/wechat/v3/client_test.go index 8bd2c0f0..a28f484f 100644 --- a/wechat/v3/client_test.go +++ b/wechat/v3/client_test.go @@ -316,7 +316,8 @@ func TestV3ProfitSharingOrder(t *testing.T) { // bs, _ := json.Marshal(rs) bm := make(gopay.BodyMap) - bm.Set("transaction_id", "4200001149202106084654939138"). + bm.Set("appid", "wx52a25f196830f677"). + Set("transaction_id", "4200001149202106084654939138"). Set("out_order_no", "202106071738581340"). Set("unfreeze_unsplit", false).Set("receivers", rs) @@ -331,7 +332,8 @@ func TestV3ProfitSharingOrder(t *testing.T) { func TestV3ProfitSharingAddReceiver(t *testing.T) { bm := make(gopay.BodyMap) - bm.Set("type", "PERSONAL_OPENID"). + bm.Set("appid", "wx52a25f196830f677"). + Set("type", "PERSONAL_OPENID"). Set("account", "oOv-Z573Ktz7o2WRkzX98eAxePVE"). Set("relation_type", "USER") @@ -346,7 +348,8 @@ func TestV3ProfitSharingAddReceiver(t *testing.T) { func TestV3ProfitSharingDeleteReceiver(t *testing.T) { bm := make(gopay.BodyMap) - bm.Set("type", "PERSONAL_OPENID"). + bm.Set("appid", "wx52a25f196830f677"). + Set("type", "PERSONAL_OPENID"). Set("account", "oOv-Z573Ktz7o2WRkzX98eAxePVE") wxRsp, err := client.V3ProfitShareDeleteReceiver(ctx, bm)