feta: 完善demo
This commit is contained in:
parent
ff395f5338
commit
cc26d5bff3
@ -17,11 +17,10 @@ $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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}catch(\WxworkFinanceSdkException $e) {
|
}catch(\WxworkFinanceSdkException $e) {
|
||||||
var_dump($e->getMessage(), $e->getCode());
|
var_dump($e->getMessage(), $e->getCode());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user