diff --git a/src/MiniProgram/Encryptor.php b/src/MiniProgram/Encryptor.php index 8a29742..e135367 100644 --- a/src/MiniProgram/Encryptor.php +++ b/src/MiniProgram/Encryptor.php @@ -19,10 +19,6 @@ public function decryptData(string $sessionKey, string $iv, string $encryptedDat { $jsonString = openssl_decrypt(base64_decode($encryptedData), "aes-128-cbc", base64_decode($sessionKey), OPENSSL_RAW_DATA, base64_decode($iv)); - if (openssl_error_string() !== false) { - throw new EncryptorError(openssl_error_string()); - } - $decryptData = json_decode($jsonString, true); if (!$decryptData) {