增加输出日志

This commit is contained in:
2024-04-02 10:24:41 +08:00
parent f8299b36aa
commit c5df43ce48
5 changed files with 19 additions and 15 deletions

View File

@@ -186,7 +186,7 @@ class RsaSigner implements Signer
public function checkSignature(YopHttpResponse $httpResponse, $signature, $publicKey, SignOptions $options)
{
$content = $httpResponse->readContent();
\Log::channel('yeepay')->info($content);
\Log::channel('yeepay')->error('返回的内容:', json_decode($content, true));
$content = str_replace([" ", "\n", "\t"], "", $content);
if (openssl_verify($content, base64_decode($signature), $publicKey, $options->getDigestAlg()) == 1) {