855 协议版本-调整完毕内容
This commit is contained in:
@@ -13,7 +13,11 @@ from wechat_ipad.client.base import WechatAPIClientBase, Proxy
|
||||
class ToolMixin(WechatAPIClientBase):
|
||||
async def download_image(self, aeskey: str, cdnmidimgurl: str) -> str:
|
||||
"""CDN下载高清图片。
|
||||
|
||||
{
|
||||
"Wxid": "string",
|
||||
"FileNo": "string",
|
||||
"FileAesKey": "string"
|
||||
}
|
||||
Args:
|
||||
aeskey (str): 图片的AES密钥
|
||||
cdnmidimgurl (str): 图片的CDN URL
|
||||
@@ -30,7 +34,7 @@ class ToolMixin(WechatAPIClientBase):
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
json_param = {"Wxid": self.wxid, "AesKey": aeskey, "Cdnmidimgurl": cdnmidimgurl}
|
||||
response = await session.post(f'http://{self.ip}:{self.port}/CdnDownloadImg', json=json_param)
|
||||
response = await session.post(f'http://{self.ip}:{self.port}/api/Tools/CdnDownloadImage', json=json_param)
|
||||
json_resp = await response.json()
|
||||
|
||||
if json_resp.get("Success"):
|
||||
|
||||
Reference in New Issue
Block a user