diff --git a/plugin/think-plugs-payment/src/service/payment/WechatPayment.php b/plugin/think-plugs-payment/src/service/payment/WechatPayment.php index 357b4fa10..708d49b27 100644 --- a/plugin/think-plugs-payment/src/service/payment/WechatPayment.php +++ b/plugin/think-plugs-payment/src/service/payment/WechatPayment.php @@ -93,5 +93,8 @@ abstract class WechatPayment implements PaymentInterface $this->config['ssl_key'] = $local->path($sslKey, true); $this->config['cert_public'] = $this->config['ssl_cer']; $this->config['cert_private'] = $this->config['ssl_key']; + $this->config['cert_serial'] = $this->cfgParams['wechat_mch_cer_id'] ?? ''; + $this->config['mp_cert_serial'] = $this->cfgParams['wechat_mch_v3_paycer_id'] ?? ''; + $this->config['mp_cert_content'] = $this->cfgParams['wechat_mch_v3_paycer_text'] ?? ''; } } \ No newline at end of file diff --git a/plugin/think-plugs-payment/src/view/config/form_wechat.html b/plugin/think-plugs-payment/src/view/config/form_wechat.html index f3f9d2c32..bc3fc639d 100644 --- a/plugin/think-plugs-payment/src/view/config/form_wechat.html +++ b/plugin/think-plugs-payment/src/view/config/form_wechat.html @@ -38,17 +38,42 @@ 必填,微信商户密钥,需要在微信商户平台操作设置密码并获取密钥,建议定期更换密钥。 - +
+ 微信商户证书 +
+ + + +
+
- +
+ 微信支付公钥 +
+ + +
+