微信红包 插件加载证书

This commit is contained in:
李子铭 2024-09-02 14:02:00 +08:00
parent cb3c0def58
commit 8d0373dce0
5 changed files with 0 additions and 5 deletions

View File

@ -22,7 +22,6 @@ func getWechatCpnConf() []byte {
c := &wechat.Server{ c := &wechat.Server{
MchID: "1605446142", // 证书所属商户 MchID: "1605446142", // 证书所属商户
MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76", MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76",
MchAPIv3Key: "ChengDuLanSeXiongDi1234567890123",
} }
marshal, _ := json.Marshal(c) marshal, _ := json.Marshal(c)
return marshal return marshal

View File

@ -22,7 +22,6 @@ func getWechatRedPackConf() []byte {
c := &wechat.Server{ c := &wechat.Server{
MchID: "1629276485", MchID: "1629276485",
MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92", MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92",
MchAPIv3Key: "ChengDuBale0123456789qwertyuiopa",
} }
marshal, _ := json.Marshal(c) marshal, _ := json.Marshal(c)
return marshal return marshal

View File

@ -16,7 +16,6 @@ func config() []byte {
c := &wechat.Server{ c := &wechat.Server{
MchID: "1605446142", // 证书所属商户 MchID: "1605446142", // 证书所属商户
MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76", MchCertificateSerialNumber: "4D081089DEB385316CBDCB55C070287E4920AC76",
MchAPIv3Key: "ChengDuLanSeXiongDi1234567890123",
} }
marshal, _ := json.Marshal(c) marshal, _ := json.Marshal(c)
return marshal return marshal

View File

@ -16,7 +16,6 @@ func config() []byte {
c := &wechat.Server{ c := &wechat.Server{
MchID: "1629276485", MchID: "1629276485",
MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92", MchCertificateSerialNumber: "3C7E21B74C04BE6227A690EB44184F219D763F92",
MchAPIv3Key: "ChengDuBale0123456789qwertyuiopa",
} }
marshal, _ := json.Marshal(c) marshal, _ := json.Marshal(c)
return marshal return marshal

View File

@ -14,7 +14,6 @@ import (
type Server struct { type Server struct {
MchID string `json:"mch_id"` MchID string `json:"mch_id"`
MchCertificateSerialNumber string `json:"mch_certificate_serial_number"` 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) { func newClient(ctx context.Context, c *Server) (*core.Client, error) {