Skip to content

Commit 415560b

Browse files
authored
Merge pull request #67 from RunsTp/1.2.x
🐛 删除openssl_error_string判断
2 parents 07763cf + b7d6fef commit 415560b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/MiniProgram/Encryptor.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ public function decryptData(string $sessionKey, string $iv, string $encryptedDat
1919
{
2020
$jsonString = openssl_decrypt(base64_decode($encryptedData), "aes-128-cbc", base64_decode($sessionKey), OPENSSL_RAW_DATA, base64_decode($iv));
2121

22-
if (openssl_error_string() !== false) {
23-
throw new EncryptorError(openssl_error_string());
24-
}
25-
2622
$decryptData = json_decode($jsonString, true);
2723

2824
if (!$decryptData) {

0 commit comments

Comments
 (0)