From ab400224820413c7c57494c737ac1741834349c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 4 Mar 2025 14:11:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=85=AC=E9=92=A5=E6=94=B9=E4=B8=BA=E5=8F=AF=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/think-plugs-wechat/src/controller/Config.php | 12 ++++++------ .../think-plugs-wechat/src/view/config/payment.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugin/think-plugs-wechat/src/controller/Config.php b/plugin/think-plugs-wechat/src/controller/Config.php index 9e2498bf8..3c54616bd 100644 --- a/plugin/think-plugs-wechat/src/controller/Config.php +++ b/plugin/think-plugs-wechat/src/controller/Config.php @@ -171,12 +171,12 @@ class Config extends Controller if ($this->request->isPost()) { $local = LocalStorage::instance(); $wechat = $this->request->post('wechat'); - if (empty($wechat['mch_pay_sid'])) { - $this->error('微信支付公钥序号为空!'); - } - if (empty($wechat['mch_ssl_pay']) || !$local->has($wechat['mch_ssl_pay'], true)) { - $this->error('微信支付公钥不能为空!'); - } + // if (empty($wechat['mch_pay_sid'])) { + // $this->error('微信支付公钥序号为空!'); + // } + // if (empty($wechat['mch_ssl_pay']) || !$local->has($wechat['mch_ssl_pay'], true)) { + // $this->error('微信支付公钥不能为空!'); + // } // PEM 证书模式处理 if ($wechat['mch_ssl_type'] === 'pem') { if (empty($wechat['mch_ssl_key']) || !$local->has($wechat['mch_ssl_key'], true)) { diff --git a/plugin/think-plugs-wechat/src/view/config/payment.html b/plugin/think-plugs-wechat/src/view/config/payment.html index cdbe7c3bf..d77c73c27 100644 --- a/plugin/think-plugs-wechat/src/view/config/payment.html +++ b/plugin/think-plugs-wechat/src/view/config/payment.html @@ -37,7 +37,7 @@