From e3cca1cf5c532454df0964afc3c1800cee64e242 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Sun, 18 Aug 2019 19:49:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=93=E6=94=AF=E4=BB=98=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/payment/PayEase.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/extend/payment/PayEase.php b/extend/payment/PayEase.php index 0072222fb..701c3dd0d 100644 --- a/extend/payment/PayEase.php +++ b/extend/payment/PayEase.php @@ -120,6 +120,12 @@ class PayEase return DataReturn('支付缺少配置', -1); } + // 证书是否配置 + if(!file_exists($this->private_key) || !file_exists($this->public_key) || !file_exists($this->out_public_key)) + { + return DataReturn('密钥证书未配置', -1); + } + $data = [ 'merchantId' => $this->config['merchantId'], 'orderAmount' => $params['total_price']*100, -- GitLab