From a94e4f9c768a8490d022b4effc7843abcb728ea5 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Thu, 28 Nov 2019 11:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=8F=92=E4=BB=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/Weixin.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extend/payment/Weixin.php b/extend/payment/Weixin.php index c924db9bf..17cde719a 100755 --- a/extend/payment/Weixin.php +++ b/extend/payment/Weixin.php @@ -502,6 +502,12 @@ class Weixin return DataReturn($ret, -1); } + // 证书是否配置 + if(empty($this->config['apiclient_cert']) || empty($this->config['apiclient_key'])) + { + return DataReturn('证书未配置', -1); + } + // 退款原因 $refund_reason = empty($params['refund_reason']) ? $params['order_no'].'订单退款'.$params['refund_price'].'元' : $params['refund_reason'];