From 8090679e1b59322d0fe4ad1764d7f00bae23750f Mon Sep 17 00:00:00 2001 From: David <367013672@qq.com> Date: Wed, 9 Oct 2024 00:22:19 +0800 Subject: [PATCH] Update Validator.php (#2844) fix: #2843 --- src/Pay/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Pay/Validator.php b/src/Pay/Validator.php index 93d60f4e6..5beb30735 100644 --- a/src/Pay/Validator.php +++ b/src/Pay/Validator.php @@ -62,7 +62,7 @@ public function validate(MessageInterface $message): void base64_decode($signature), strval($publicKey), OPENSSL_ALGO_SHA256 - ) === false) { + ) !== 1) { throw new InvalidSignatureException('Invalid Signature'); } }