调整内容
This commit is contained in:
@@ -450,7 +450,7 @@ class MessageMixin(WechatAPIClientBase):
|
||||
|
||||
async with aiohttp.ClientSession() as session:
|
||||
json_param = {"Wxid": self.wxid, "ToWxid": towxid, "Xml": xml, "Type": 0}
|
||||
|
||||
logger.debug(f"_send_link_xml_message:{xml}")
|
||||
response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/ShareLink', json=json_param)
|
||||
json_resp = await response.json()
|
||||
logger.info(f"_send_link_xml_message resp:{json_resp}")
|
||||
@@ -584,7 +584,7 @@ class MessageMixin(WechatAPIClientBase):
|
||||
"""
|
||||
return await self._queue_message(self._send_app_message, wxid, xml, type)
|
||||
|
||||
async def _send_app_message(self, wxid: str, xml: str, type: int=0) -> tuple[int, int, int]:
|
||||
async def _send_app_message(self, wxid: str, xml: str, type: int = 0) -> tuple[int, int, int]:
|
||||
if not self.wxid:
|
||||
raise UserLoggedOut("请先登录")
|
||||
# {
|
||||
|
||||
Reference in New Issue
Block a user