提交 e3cca1cf 编写于 作者: G gongfuxiang

易支付插件优化

上级 2a900e2a
...@@ -120,6 +120,12 @@ class PayEase ...@@ -120,6 +120,12 @@ class PayEase
return DataReturn('支付缺少配置', -1); return DataReturn('支付缺少配置', -1);
} }
// 证书是否配置
if(!file_exists($this->private_key) || !file_exists($this->public_key) || !file_exists($this->out_public_key))
{
return DataReturn('密钥证书未配置', -1);
}
$data = [ $data = [
'merchantId' => $this->config['merchantId'], 'merchantId' => $this->config['merchantId'],
'orderAmount' => $params['total_price']*100, 'orderAmount' => $params['total_price']*100,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册