Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANDROID_WATCH 下无法解析嵌套的 ForwardMessage #1652

Closed
Deficuet opened this issue Nov 4, 2021 · 1 comment · Fixed by #1667
Closed

ANDROID_WATCH 下无法解析嵌套的 ForwardMessage #1652

Deficuet opened this issue Nov 4, 2021 · 1 comment · Fixed by #1667
Labels
M 优先级: 主要 t:problem 类型: 不容易归类为特性或 bug 的综合问题 x:question 标签: 需要更多信息 z:wait-for-reply 状态: 等待回复
Milestone

Comments

@Deficuet
Copy link

Deficuet commented Nov 4, 2021

看起来不像是个正常行为(
如题;一个合并转发包着四个合并转发,这四个每个都被直接以富文本消息的形式打印在日志上而不是解析并打印NodeList
这是其中一个保存到磁盘的样子,就是普通的富文本消息文本

<?xml version="1.0" encoding="utf-8"?>
<msg templateID="-1" brief="[聊天记录]" m_fileSize="11294" url="" sourceMsgId="0" serviceID="35" adverSign="0" m_fileName="MultiMsg_C1BCEC1B-B43E-41B9-BDF3-458D21676E1D" action="viewMultiMsg" flag="3" m_resid="W4iGqbVK3s3MMtSSlQGRSiaBmwPxU3u4uc5PMmuctrzQNTaDf+o0SCqhE0X1Hhp6" tSum="20" multiMsgFlag="0"><item advertiser_id="0" layout="1" aid="0"><title size="34" maxLines="2" lineSpace="12" color="#000000">星刻的芽衣/樱花之下的聊天记录</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><hr style="0" hidden="false"></hr><summary color="#808080" size="26">查看20条转发消息</summary></item><source appid="0" icon="" name="聊天记录" action=""></source></msg>

这是整个合并转发消息的日志
下载消息的日志只出现了一次

2021-11-03 20:30:17 V/Net 15*****: Send: MultiMsg.ApplyDown(MultiMsg.ApplyDown)
2021-11-03 20:30:17 V/Net 15*****: Recv: MultiMsg.ApplyDown
2021-11-03 20:30:17 V/Net 15*****: [Http] Downloading forward message from https://ssl.htdata.qq.com:443
2021-11-03 20:30:20 V/Net 15*****: [Http] Downloading forward message: succeed
2021-11-03 20:30:20 V/deficuet_qqbot: V/15*****: [正常的群名(173******)] 自动艾特自动发色图机器人仿生人(491*****) -> [mirai:origin:FORWARD,I0tXmPZZ8yYdpQWIQx+d/UDN+gEZdpjx1SP35d1MQ/AACnRrNB3R+Qma33qQl/tL]ForwardMessage(preview=[Bias: [聊天记录], 关于我在少女映畫...: [聊天记录], 关于我在少女映畫...: [聊天记录], 关于我在少女映畫...: [聊天记录]], title=群聊的聊天记录, brief=[聊天记录], source=聊天记录, summary=查看4条转发消息, nodeList=[Node(senderId=1102790098, time=1635726045, senderName=Bias, messageChain=[mirai:service:0,<?xml version="1.0" encoding="utf-8"?>\n<msg templateID="-1" brief="[聊天记录]" m_fileSize="11294" url="" sourceMsgId="0" serviceID="35" adverSign="0" m_fileName="MultiMsg_C1BCEC1B-B43E-41B9-BDF3-458D21676E1D" action="viewMultiMsg" flag="3" m_resid="W4iGqbVK3s3MMtSSlQGRSiaBmwPxU3u4uc5PMmuctrzQNTaDf+o0SCqhE0X1Hhp6" tSum="20" multiMsgFlag="0"><item advertiser_id="0" layout="1" aid="0"><title size="34" maxLines="2" lineSpace="12" color="#000000">星刻的芽衣/樱花之下的聊天记录</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">星刻的芽衣: [图片]</title><hr style="0" hidden="false"></hr><summary color="#808080" size="26">查看20条转发消息</summary></item><source appid="0" icon="" name="聊天记录" action=""></source></msg>\n]), Node(senderId=2842664027, time=1635728916, senderName=关于我在少女映畫上看见嘉然后连夜, messageChain=[mirai:service:0,<?xml version="1.0" encoding="utf-8"?>\n<msg templateID="-1" brief="[聊天记录]" m_fileSize="10990" url="" sourceMsgId="0" serviceID="35" adverSign="0" m_fileName="MultiMsg_0FA1845E-5F03-4083-A67C-6D1B4AEF4E86" action="viewMultiMsg" flag="3" m_resid="cjYsARtXJ0ul8qBggvWuIuMn66nRyRNStl5f9hgmbObQNOi7URNsaVPFJENTM+WZ" tSum="20" multiMsgFlag="0"><item advertiser_id="0" layout="1" aid="0"><title size="34" maxLines="2" lineSpace="12" color="#000000">Smile 丶的聊天记录</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><hr style="0" hidden="false"></hr><summary color="#808080" size="26">查看20条转发消息</summary></item><source appid="0" icon="" name="聊天记录" action=""></source></msg>\n]), Node(senderId=2842664027, time=1635728922, senderName=关于我在少女映畫上看见嘉然后连夜, messageChain=[mirai:service:0,<?xml version="1.0" encoding="utf-8"?>\n<msg templateID="-1" brief="[聊天记录]" m_fileSize="10972" url="" sourceMsgId="0" serviceID="35" adverSign="0" m_fileName="MultiMsg_91F7C531-4CB5-418C-BF5C-4C257E8D4274" action="viewMultiMsg" flag="3" m_resid="AJllFG1jSkGRym5KpBN4m2CziDDlfB5YMclYTgO/Q4/20W6Qq1z/P3gJrogWctpR" tSum="20" multiMsgFlag="0"><item advertiser_id="0" layout="1" aid="0"><title size="34" maxLines="2" lineSpace="12" color="#000000">Smile丶的聊天记录</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><hr style="0" hidden="false"></hr><summary color="#808080" size="26">查看20条转发消息</summary></item><source appid="0" icon="" name="聊天记录" action=""></source></msg>\n]), Node(senderId=2842664027, time=1635728926, senderName=关于我在少女映畫上看见嘉然后连夜, messageChain=[mirai:service:0,<?xml version="1.0" encoding="utf-8"?>\n<msg templateID="-1" brief="[聊天记录]" m_fileSize="18686" url="" sourceMsgId="0" serviceID="35" adverSign="0" m_fileName="MultiMsg_B24993A4-331A-4253-B244-F9072DE4DFB7" action="viewMultiMsg" flag="3" m_resid="baNuhIou8O0xs9CWeEKBQj/wDJ97YjfQ6CArPHnrQtdH5ndTcLGfIjksAxhHKkii" tSum="34" multiMsgFlag="0"><item advertiser_id="0" layout="1" aid="0"><title size="34" maxLines="2" lineSpace="12" color="#000000">Smile丶的聊天记录</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><title size="26" maxLines="2" lineSpace="12" color="#777777">Smile丶: [图片]</title><hr style="0" hidden="false"></hr><summary color="#808080" size="26">查看34条转发消息</summary></item><source appid="0" icon="" name="聊天记录" action=""></source></msg>\n])])

FwdMsgLog.txt

复现

拿个watch协议的号接收嵌套的合并转发就有可能复现
看起来像是偶然现象,没发现规律;之前已遇到过数次但是找不到日志

版本及相关选项选择

  • mirai-core: 2.7.1
  • bot-protocol: ANDROID_WATCH

补充信息

让phone协议的号接收能够正常解析出nodeList

@Deficuet Deficuet added the x:question 标签: 需要更多信息 label Nov 4, 2021
@Him188
Copy link
Member

Him188 commented Nov 6, 2021

试试 2.8.0-RC ?

@Him188 Him188 added the z:wait-for-reply 状态: 等待回复 label Nov 6, 2021
@Him188 Him188 added this to the Backlog milestone Nov 6, 2021
@Him188 Him188 added M 优先级: 主要 t:problem 类型: 不容易归类为特性或 bug 的综合问题 labels Nov 6, 2021
@Karlatemp Karlatemp changed the title 嵌套一层的合并转发被直接以富文本消息的形式呈现,而没有被解析成ForwardMessage ANDROID_WATCH 下无法解析嵌套的 ForwardMessage Nov 6, 2021
@Karlatemp Karlatemp modified the milestones: Backlog, 2.9 Nov 6, 2021
@Him188 Him188 modified the milestones: 2.9, 2.9.0-RC Nov 9, 2021
@Karlatemp Karlatemp modified the milestones: 2.9.0-RC, 2.9.0-M1 Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
M 优先级: 主要 t:problem 类型: 不容易归类为特性或 bug 的综合问题 x:question 标签: 需要更多信息 z:wait-for-reply 状态: 等待回复
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants