Skip to content

Commit ac1669a

Browse files
committed
v1.5.77
1 parent 076762c commit ac1669a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

doc/wechat_v3.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ if err != nil {
3737
return
3838
}
3939

40-
// 启用自动同步返回验签,并定时更新微信平台API证书
40+
// 设置微信平台API证书和序列号(如开启自动验签,请忽略此步骤)
41+
//client.SetPlatformCert([]byte(""), "")
42+
43+
// 启用自动同步返回验签,并定时更新微信平台API证书(开启自动验签时,无需单独设置微信平台API证书和序列号)
4144
err = client.AutoVerifySign()
4245
if err != nil {
4346
xlog.Error(err)

wechat/v3/client_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ func TestMain(m *testing.M) {
6363
xlog.Error(err)
6464
return
6565
}
66+
67+
// 设置微信平台证书和序列号,如开启自动验签,请忽略此步骤
68+
//client.SetPlatformCert([]byte(""), "")
69+
6670
// 启用自动同步返回验签,并定时更新微信平台API证书
6771
err = client.AutoVerifySign()
6872
if err != nil {

0 commit comments

Comments
 (0)