|
@@ -65,7 +65,7 @@ class HttpBaseController extends BaseController
|
|
|
$options->appId = $configArr['app_id'];
|
|
|
|
|
|
// 为避免私钥随源码泄露,推荐从文件中读取私钥字符串而不是写入源码中
|
|
|
- $options->merchantPrivateKey = $configArr['private_key'];
|
|
|
+ $options->merchantPrivateKey = file_get_contents($configArr['private_key']);
|
|
|
|
|
|
$options->alipayCertPath = $configArr['alipay_cert_public_key_rsa2'];//'<-- 请填写您的支付宝公钥证书文件路径,例如:/foo/alipayCertPublicKey_RSA2.crt -->';
|
|
|
$options->alipayRootCertPath = $configArr['alipay_root_cert'];//'<-- 请填写您的支付宝根证书文件路径,例如:/foo/alipayRootCert.crt" -->';
|