更改微信支付号;代理新增是否显示价格
This commit is contained in:
@@ -106,12 +106,12 @@ func newWechatPayServiceWithPlatformCert(c config.Config, userAuthModel model.Us
|
||||
// newWechatPayServiceWithWxPayPubKey 使用微信支付公钥初始化微信支付服务
|
||||
func newWechatPayServiceWithWxPayPubKey(c config.Config, userAuthModel model.UserAuthModel) *WechatPayService {
|
||||
// 从配置中加载商户信息
|
||||
mchID := c.Wxpay.MchID
|
||||
mchCertificateSerialNumber := c.Wxpay.MchCertificateSerialNumber
|
||||
mchAPIv3Key := c.Wxpay.MchApiv3Key
|
||||
mchPrivateKeyPath := c.Wxpay.MchPrivateKeyPath
|
||||
mchPublicKeyID := c.Wxpay.MchPublicKeyID
|
||||
mchPublicKeyPath := c.Wxpay.MchPublicKeyPath
|
||||
mchID := c.Wxpay.MchID // 商户号
|
||||
mchCertificateSerialNumber := c.Wxpay.MchCertificateSerialNumber // 商户证书序列号
|
||||
mchAPIv3Key := c.Wxpay.MchApiv3Key // 商户APIv3密钥
|
||||
mchPrivateKeyPath := c.Wxpay.MchPrivateKeyPath // 商户私钥路径
|
||||
mchPublicKeyID := c.Wxpay.MchPublicKeyID // 商户公钥ID
|
||||
mchPublicKeyPath := c.Wxpay.MchPublicKeyPath // 商户公钥路径
|
||||
// 从文件中加载商户私钥
|
||||
mchPrivateKey, err := utils.LoadPrivateKeyWithPath(mchPrivateKeyPath)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user