xieruidong il y a 2 ans
Parent
commit
20ab5303b2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      application/service/byte_dance/ByteDanceDecrypt.php

+ 1 - 1
application/service/byte_dance/ByteDanceDecrypt.php

@@ -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()})");