增加输出日志
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user