From 8d0373dce013b6f7c1e6a50a0bfae63e97077697 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AD=90=E9=93=AD?= Date: Mon, 2 Sep 2024 14:02:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E7=BA=A2=E5=8C=85=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E5=8A=A0=E8=BD=BD=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/wechat_cpn.go | 1 - cmd/wechat_redpack.go | 1 - plugins/wechat_cpn/internal/wechat_cpn_test.go | 1 - plugins/wechat_redpack/internal/wechat_redpack_test.go | 1 - utils/wechat/client.go | 1 - 5 files changed, 5 deletions(-) diff --git a/cmd/wechat_cpn.go b/cmd/wechat_cpn.go index f676be1..e20c394 100644 --- a/cmd/wechat_cpn.go +++ b/cmd/wechat_cpn.go @@ -22,7 +22,6 @@ func getWechatCpnConf() []byte { c := &wechat.Server{ MchID: "1605446142", // 证书所属商户 MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76", - MchAPIv3Key: "ChengDuLanSeXiongDi1234567890123", } marshal, _ := json.Marshal(c) return marshal diff --git a/cmd/wechat_redpack.go b/cmd/wechat_redpack.go index e7e3aff..2de6319 100644 --- a/cmd/wechat_redpack.go +++ b/cmd/wechat_redpack.go @@ -22,7 +22,6 @@ func getWechatRedPackConf() []byte { c := &wechat.Server{ MchID: "1629276485", MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92", - MchAPIv3Key: "ChengDuBale0123456789qwertyuiopa", } marshal, _ := json.Marshal(c) return marshal diff --git a/plugins/wechat_cpn/internal/wechat_cpn_test.go b/plugins/wechat_cpn/internal/wechat_cpn_test.go index 8d4dc1e..ce7874b 100644 --- a/plugins/wechat_cpn/internal/wechat_cpn_test.go +++ b/plugins/wechat_cpn/internal/wechat_cpn_test.go @@ -16,7 +16,6 @@ func config() []byte { c := &wechat.Server{ MchID: "1605446142", // 证书所属商户 MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76", - MchAPIv3Key: "ChengDuLanSeXiongDi1234567890123", } marshal, _ := json.Marshal(c) return marshal diff --git a/plugins/wechat_redpack/internal/wechat_redpack_test.go b/plugins/wechat_redpack/internal/wechat_redpack_test.go index bafc06f..21911cf 100644 --- a/plugins/wechat_redpack/internal/wechat_redpack_test.go +++ b/plugins/wechat_redpack/internal/wechat_redpack_test.go @@ -16,7 +16,6 @@ func config() []byte { c := &wechat.Server{ MchID: "1629276485", MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92", - MchAPIv3Key: "ChengDuBale0123456789qwertyuiopa", } marshal, _ := json.Marshal(c) return marshal diff --git a/utils/wechat/client.go b/utils/wechat/client.go index 2860af6..5e82503 100644 --- a/utils/wechat/client.go +++ b/utils/wechat/client.go @@ -14,7 +14,6 @@ import ( type Server struct { MchID string `json:"mch_id"` MchCertificateSerialNumber string `json:"mch_certificate_serial_number"` - MchAPIv3Key string `json:"mch_ap_iv_3_key"` } func newClient(ctx context.Context, c *Server) (*core.Client, error) {