feta: 完善demo

This commit is contained in:
pangdahua 2020-03-10 16:12:23 +08:00
parent ff395f5338
commit cc26d5bff3

View File

@ -17,8 +17,7 @@ $chats = json_decode($obj->getChatData(0, 100), true);
foreach ($chats['chatdata'] as $val) { foreach ($chats['chatdata'] as $val) {
$decryptRandKey = null; $decryptRandKey = null;
openssl_private_decrypt(base64_decode($val['encrypt_random_key']), $decryptRandKey, $privateKey, OPENSSL_PKCS1_PADDING); openssl_private_decrypt(base64_decode($val['encrypt_random_key']), $decryptRandKey, $privateKey, OPENSSL_PKCS1_PADDING);
$j = json_decode($obj->decryptData($decryptRandKey, $val['encrypt_chat_msg'])); $obj->downloadMedia($sdkFileId, "/tmp/download");
var_dump($j);exit();
} }