|
@@ -334,9 +334,10 @@ class Wechat extends Base
|
|
$config['notify_url'] = request()->domain() . '/api/pay/notify/payment/wechat/platform/' . $this->platform;
|
|
$config['notify_url'] = request()->domain() . '/api/pay/notify/payment/wechat/platform/' . $this->platform;
|
|
// $config['mch_secret_cert'] = cdnurl($config['mch_secret_cert'], true);
|
|
// $config['mch_secret_cert'] = cdnurl($config['mch_secret_cert'], true);
|
|
// $config['mch_public_cert_path'] = cdnurl($config['mch_public_cert_path'], true);
|
|
// $config['mch_public_cert_path'] = cdnurl($config['mch_public_cert_path'], true);
|
|
- $config['mch_secret_cert'] = ROOT_PATH . 'public/apiclient_cert.pem';
|
|
|
|
- $config['mch_public_cert_path'] = ROOT_PATH . 'public/apiclient_key.pem';
|
|
|
|
-
|
|
|
|
|
|
+ // // $config['mch_secret_cert'] = ROOT_PATH . 'public/apiclient_cert.pem';
|
|
|
|
+ // // $config['mch_public_cert_path'] = ROOT_PATH . 'public/apiclient_key.pem';
|
|
|
|
+ $config['mch_secret_cert'] = ROOT_PATH . 'public' . $config['mch_secret_cert'];
|
|
|
|
+ $config['mch_public_cert_path'] = ROOT_PATH . 'public' . $config['mch_public_cert_path'];
|
|
// 可手动配置微信支付公钥证书
|
|
// 可手动配置微信支付公钥证书
|
|
$config['wechat_public_cert_id'] = $config['wechat_public_cert_id'] ?? '';
|
|
$config['wechat_public_cert_id'] = $config['wechat_public_cert_id'] ?? '';
|
|
$config['wechat_public_cert'] = $config['wechat_public_cert'] ?? '';
|
|
$config['wechat_public_cert'] = $config['wechat_public_cert'] ?? '';
|