Skip to content

Commit

Permalink
Merge pull request #66 from RunsTp/master
Browse files Browse the repository at this point in the history
🐛 fix #63 删除openssl_error_string判断
  • Loading branch information
RunsTp authored May 19, 2020
2 parents 38a2584 + 1bf9d73 commit 982e490
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 982e490

Please sign in to comment.