From 11d633c1d354dd87357bf1d392c4904d37fe4183 Mon Sep 17 00:00:00 2001 From: liuwei Date: Fri, 13 Jun 2025 15:22:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=BD=AC=E5=8F=91=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wechat_ipad/client/message.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wechat_ipad/client/message.py b/wechat_ipad/client/message.py index 0cf379d..124d297 100644 --- a/wechat_ipad/client/message.py +++ b/wechat_ipad/client/message.py @@ -628,9 +628,9 @@ class MessageMixin(WechatAPIClientBase): async with aiohttp.ClientSession() as session: json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Content": xml} - response = await session.post(f'http://{self.ip}:{self.port}/SendCDNFileMsg', json=json_param) + response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/SendCDNFile', json=json_param) json_resp = await response.json() - + self.logging.debug("json_resp: %s", json_resp) if json_resp.get("Success"): self.logging.info("转发文件消息: 对方wxid:{} xml:{}", wxid, xml) data = json_resp.get("Data") @@ -661,8 +661,9 @@ class MessageMixin(WechatAPIClientBase): async with aiohttp.ClientSession() as session: json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Content": xml} - response = await session.post(f'http://{self.ip}:{self.port}/Msg/SendCDNImg', json=json_param) + response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/SendCDNImg', json=json_param) json_resp = await response.json() + self.logging.debug("json_resp: %s", json_resp) if json_resp.get("Success"): self.logging.info("转发图片消息: 对方wxid:{} xml:{}", wxid, xml) @@ -694,9 +695,10 @@ class MessageMixin(WechatAPIClientBase): async with aiohttp.ClientSession() as session: json_param = {"Wxid": self.wxid, "ToWxid": wxid, "Content": xml} - response = await session.post(f'http://{self.ip}:{self.port}/Msg/SendCDNVideo', json=json_param) + response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/SendCDNVideo', json=json_param) json_resp = await response.json() + self.logging.debug("json_resp: %s", json_resp) if json_resp.get("Success"): self.logging.info("转发视频消息: 对方wxid:{} xml:{}", wxid, xml) data = json_resp.get("Data")