修改支付宝参数配置

This commit is contained in:
邹景立 2023-05-06 14:55:05 +08:00
parent 2fdb22b1ef
commit 98ffdf2575
2 changed files with 2 additions and 2 deletions

View File

@ -321,7 +321,7 @@ abstract class BasicAliPay
*/ */
private function getAliPublicKey() private function getAliPublicKey()
{ {
$content = wordwrap($this->config->get('public_key'), 64, "\n", true); $content = wordwrap($this->trimCert($this->config->get('public_key')), 64, "\n", true);
return "-----BEGIN PUBLIC KEY-----\n{$content}\n-----END PUBLIC KEY-----"; return "-----BEGIN PUBLIC KEY-----\n{$content}\n-----END PUBLIC KEY-----";
} }

View File

@ -35,7 +35,7 @@
*/ */
return [ return [
// 沙箱模式 // 沙箱模式
'debug' => true, 'debug' => true,
// 签名类型 ( RSA|RSA2 ) // 签名类型 ( RSA|RSA2 )
'sign_type' => 'RSA2', 'sign_type' => 'RSA2',