|
@@ -33,7 +33,7 @@ class ByteDanceDecrypt implements ByteDanceInterface {
|
|
|
public function get()
|
|
|
{
|
|
|
try {
|
|
|
- $decrypted=openssl_decrypt($this->encryptedData,'AES-128-CBC',base64_decode($this->session_key),0,base64_decode($this->iv));
|
|
|
+ $decrypted=openssl_decrypt(base64_decode($this->encryptedData),'AES-128-CBC',base64_decode($this->session_key),OPENSSL_RAW_DATA,base64_decode($this->iv));
|
|
|
return json_decode($decrypted,true);
|
|
|
}catch (\Exception $e){
|
|
|
ByteDance::throwIf(1,"数据解密失败({$e->getMessage()})");
|