Skip to content

Commit

Permalink
🐛 fix #63 删除openssl_error_string判断
Browse files Browse the repository at this point in the history
  • Loading branch information
RunsTp committed May 19, 2020
1 parent 38a2584 commit 1bf9d73
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/MiniProgram/Encryptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1bf9d73

Please sign in to comment.