调整内容
This commit is contained in:
@@ -167,7 +167,7 @@ class DouyinParserPlugin(MessagePluginInterface):
|
|||||||
url=video_url,
|
url=video_url,
|
||||||
thumburl=cover
|
thumburl=cover
|
||||||
)
|
)
|
||||||
await self.bot.send_app_message((roomid if roomid else sender), xml_content, 0)
|
await self.bot.send_link_xml_message(xml_content, (roomid if roomid else sender))
|
||||||
return True, "发送卡片成功"
|
return True, "发送卡片成功"
|
||||||
|
|
||||||
except DouyinParserError as e:
|
except DouyinParserError as e:
|
||||||
|
|||||||
@@ -450,7 +450,7 @@ class MessageMixin(WechatAPIClientBase):
|
|||||||
|
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession() as session:
|
||||||
json_param = {"Wxid": self.wxid, "ToWxid": towxid, "Xml": xml, "Type": 0}
|
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)
|
response = await session.post(f'http://{self.ip}:{self.port}/api/Msg/ShareLink', json=json_param)
|
||||||
json_resp = await response.json()
|
json_resp = await response.json()
|
||||||
logger.info(f"_send_link_xml_message resp:{json_resp}")
|
logger.info(f"_send_link_xml_message resp:{json_resp}")
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ LINK_XML_NORMAL = """
|
|||||||
</weappinfo>
|
</weappinfo>
|
||||||
<websearch />
|
<websearch />
|
||||||
</appmsg>
|
</appmsg>
|
||||||
<fromusername>WXID</fromusername>
|
<fromusername>Jyunere</fromusername>
|
||||||
<scene>0</scene>
|
<scene>0</scene>
|
||||||
<appinfo>
|
<appinfo>
|
||||||
<version>1</version>
|
<version>1</version>
|
||||||
|
|||||||
Reference in New Issue
Block a user