Skip to content

Commit

Permalink
修复解密小程序转发信息数据(wx.getShareInfo)失败的问题 (#1037)
Browse files Browse the repository at this point in the history
* 修复解密小程序转发信息数据(wx.getShareInfo)失败的问题

* 修复解密小程序转发信息数据(wx.getShareInfo)失败的问题
  • Loading branch information
yyqqing authored and overtrue committed Dec 4, 2017
1 parent 174a599 commit 35a8862
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniProgram/Encryptor.php
Expand Up @@ -33,7 +33,7 @@ class Encryptor extends BaseEncryptor
public function decryptData(string $sessionKey, string $iv, string $encrypted): array
{
$decrypted = AES::decrypt(
base64_decode($encrypted, true), base64_decode($sessionKey, true), base64_decode($iv, true)
base64_decode($encrypted, false), base64_decode($sessionKey, false), base64_decode($iv, false)
);

return json_decode($this->pkcs7Unpad($decrypted), true);
Expand Down

0 comments on commit 35a8862

Please sign in to comment.