This commit is contained in:
xl
2024-06-03 11:41:26 +08:00
parent 561b105d31
commit 1ff0203511
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -137,7 +137,7 @@ trait WxV3PaymentTait
{
$payConfig = $this->getPayConfig();
$mch_private_key = openssl_get_privatekey(file_get_contents($payConfig->pay->wx->mchKey));
$mch_private_key = openssl_get_privatekey(file_get_contents($payConfig->pay->wx->mchCert));
openssl_sign($body, $raw_sign, $mch_private_key, 'sha256WithRSAEncryption');
return base64_encode($raw_sign);