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) {