Update README.md

This commit is contained in:
庞大花 2020-07-24 15:14:09 +08:00 committed by GitHub
parent d6cef37802
commit d08c0c3e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,11 +46,17 @@ openssl扩展
```
```php
bool WxworkFinanceSdk::downloadMedia(string $fileId, string $savePath = '')
bool WxworkFinanceSdk::downloadMedia(string $sdkfileid, string $saveTo)
* 下载资源
$sdkfileid 资源id。来自chat 中的数据sdkfileid
$saveTo 本地保存的路径
```
```php
string WxworkFinanceSdk::decryptData(string $randomKey, string $encryptStr);
* 解密数据
$randomKey 通过openssl解密后的key
$encryptStr chats 的加密数据
```
## 示例