-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
支持群外人员被群员邀请入群时向管理发送的加群申请 #458
Labels
Milestone
Comments
补充:不支持该问题似乎会影响之后的加群消息接收。日志显示,之后的收到普通的加群请求均会报与之前邀请加群相同的错误,例如: 在收到无名(593220145)的普通的加群申请时,日志中显示出现以下错误:
同样的错误一起出现,直至收到下一个邀请加群申请:
目前尚未测试其他管理处理掉这些申请后是否会阻止这一情况的发生。但我处理掉这两个申请后,发现机器人似乎收不到新的加群申请了,这一情况待测试。 |
在记录中没有找到 1639374647. 请确认是否有误:
|
2.0版本也出现了相同的错误 |
请提供相关的网络日志 |
2021-01-20 19:36:19 E/Net 318201913: Exception in NetworkHandler
java.lang.IllegalStateException: 在 parse SystemMsgNewGroup, subType=1 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai. 并尽量描述此时机器人是否正被邀请加入群, 或者是有有新群员加入此群 调试信息: SystemMsg#5643355 {
actionUin=0x0000000026ECB195(653046165)
actionUinNick=白小纯
actionUinQqNick=白小纯
actions=[SystemMsgAction#488122367 {
actionInfo=SystemMsgActionInfo#664191470 {
blacklist=false
groupCode=0x000000001E93610E(512975118)
type=0x0000000C(12)
}
detailName=拒绝
name=拒绝
result=已拒绝
}, SystemMsgAction#488122367 {
actionInfo=SystemMsgActionInfo#664191470 {
blacklist=false
groupCode=0x000000001E93610E(512975118)
type=0x0000000B(11)
}
detailName=同意
name=同意
result=已同意
}, SystemMsgAction#488122367 {
actionInfo=SystemMsgActionInfo#664191470 {
blacklist=false
groupCode=0x000000001E93610E(512975118)
type=0x0000000E(14)
}
detailName=忽略
name=忽略
result=已忽略
}]
actorUin=0x0000000000000000(0)
cloneUin=0x0000000000000000(0)
discussUin=0x0000000000000000(0)
eimGroupId=0x0000000000000000(0)
groupCode=0x000000001E93610E(512975118)
groupExtFlag=0x40210040(1075904576)
groupInfo=GroupInfo#2118154612 {
appPrivilegeFlag=0x000100D0(65744)
}
groupMsgType=0x00000016(22)
groupName=会玩
groupOwnerUin=0x0000000000000000(0)
msgActorDescribe=邀请人:%action_uin%
msgAdditional=来自:群成员白小纯的邀请
msgDescribe=申请加入 %group_name%
msgInviteExtinfo=MsgInviteExt#793576359 {
srcCode=0x0000000000000000(0)
}
msgTitle=加群申请
reqUinAge=0x00000015(21)
reqUinFaceid=0x00003A02(14850)
reqUinGender=0x00000001(1)
reqUinNick=蓝大大
subType=0x00000001(1)
}
at net.mamoe.mirai.internal.message.ConversionsKt.contextualBugReportException(conversions.kt:641)
at net.mamoe.mirai.internal.message.ConversionsKt.contextualBugReportException$default(conversions.kt:639)
at net.mamoe.mirai.internal.network.protocol.packet.chat.NewContact$SystemMsgNewGroup.decode(NewContact.kt:175)
at net.mamoe.mirai.internal.network.protocol.packet.KnownPacketFactories.handleIncomingPacket$mirai_core(PacketFactory.kt:507)
at net.mamoe.mirai.internal.network.protocol.packet.KnownPacketFactories.parseIncomingPacket(PacketFactory.kt:237)
at net.mamoe.mirai.internal.network.QQAndroidBotNetworkHandler.generifiedParsePacket(QQAndroidBotNetworkHandler.kt:563)
at net.mamoe.mirai.internal.network.QQAndroidBotNetworkHandler.parsePacket(QQAndroidBotNetworkHandler.kt:558)
at net.mamoe.mirai.internal.network.QQAndroidBotNetworkHandler$parsePacketAsync$1.invokeSuspend(QQAndroidBotNetworkHandler.kt:541)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:738)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665) |
补充subType |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
无法解析subType=1,groupMsgType=22的事件,对应为か冷(2068766019)邀请.(1639374647)进群
复现
让一个群员邀请别人进群即可,记得开邀请进群需管理审核
版本
mirai:
1.1.3
建议添加一个新事件,或为
MemberJoinRequestEvent
增加邀请人参数,事件解析在net.mamoe.mirai.qqandroid.network.protocol.packet.chat.NewContact$SystemMsgNewGroup.decode
The text was updated successfully, but these errors were encountered: