MrXiaoM / Overflow

替换 mirai 实现为 Onebot 以进行无缝迁移
https://mirai.mrxiaom.top
GNU Affero General Public License v3.0
337 stars 25 forks source link

使用OneBot时获取Bot的所有群聊会返回一个空的ContactList #54

Closed IzumiiKonata closed 5 months ago

IzumiiKonata commented 5 months ago

问题描述

Bot.getGroups()调用后会返回一个空的ContactList 只有在接收到群聊消息后Bot.getGroups()返回的列表中才会添加该群 网络日志中收到WebSocket消息get_group_list后会上报完整的Bot群列表, 但是只会返回一个空的ContactList QQ截图20240527200102

复现

复现代码: QQ截图20240527200518

Overflow 版本

d53033f

其他组件版本

Bot实现: LLOneBot v3.26.2

系统日志

2024-05-27 20:10:46 V/Bot.2128440478: Event: BotOnlineEvent(bot=Bot(2128440478))
[2024-05-27 20:10:46] [ProjectMisaka/DEBUG] start() called from BootStrap
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Trying to log in bot 2128440478...
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Bot g(2128440478) is logged in.
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Subscribed GroupMessageEvent.
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Launching Project Misaka....
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Initializing....
[2024-05-27 20:10:46] [CommandManager/INFO] 11 commands found.
[2024-05-27 20:10:46] [ConsoleCommandManager/INFO] 4 console commands found.
[2024-05-27 20:10:46] [ConsoleCommandManager/INFO] [Command, Help, Perm, Quit]
[2024-05-27 20:10:46] [PermissionManager/INFO] 已加载 2 个用户的 23 条权限.
[2024-05-27 20:10:46] [ProjectMisaka/INFO] Finished.
[2024-05-27 20:10:46] [ProjectMisaka/DEBUG] ContactList()

网络日志

5/27/2024, 8:10:42 PM 2128440478(2128440478): self info {"uid":"u_fcwSngIPZP-oFBGt30HSSw","uin":"2128440478","nick":"2128440478","online":true,"account":"2128440478","mainAccount":"","nickName":"","gender":0,"age":0,"faceUrl":"","a2":"","d2":"","d2key":""} {"account":"2128440478","mainAccount":"","uin":"2128440478","uid":"u_fcwSngIPZP-oFBGt30HSSw","nickName":"","gender":0,"age":0,"faceUrl":"","a2":"","d2":"","d2key":""} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): llonebot pid 8128 

5/27/2024, 8:10:42 PM 2128440478(2128440478): LLOneBot start 

5/27/2024, 8:10:42 PM 2128440478(2128440478): nodeIKernelGroupService/getGroupList callback {"result":0,"errMsg":"success"} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): nodeIKernelProfileService/getUserDetailInfoWithBizInfo callback {"result":0,"errMsg":"success"} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"485868537","maxMember":200,"memberCount":101,"groupName":"窝囊废断头台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134338,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2163776,"authGroupType":0,"groupCreditLevel":4,"groupFlagExt3":1074798720,"groupOwnerId":{"memberUin":"0","memberUid":"u_1ndf-5J-jY2wkVw-4wnVSw"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"485868537","maxMember":200,"memberCount":101,"groupName":"窝囊废断头台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134338,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2163776,"authGroupType":0,"groupCreditLevel":4,"groupFlagExt3":1074798720,"groupOwnerId":{"memberUin":"0","memberUid":"u_1ndf-5J-jY2wkVw-4wnVSw"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 485868537 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"567962184","maxMember":200,"memberCount":56,"groupName":"Lollipop Client ♥ 交流群","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":590033,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"1633853286","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2162784,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":128,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"567962184","maxMember":200,"memberCount":56,"groupName":"Lollipop Client ♥ 交流群","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":590033,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"1633853286","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2162784,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":128,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"618769434","maxMember":200,"memberCount":2,"groupName":"IzumiKonata、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 567962184 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"618769434","maxMember":200,"memberCount":2,"groupName":"IzumiKonata、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 618769434 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"719670912","maxMember":200,"memberCount":17,"groupName":"窝囊废杀戮台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134336,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1075905600,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1152,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"719670912","maxMember":200,"memberCount":17,"groupName":"窝囊废杀戮台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134336,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1075905600,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1152,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 822359386 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"909166931","maxMember":200,"memberCount":4,"groupName":"IzumiKonata、we1l、eplor.wav、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 909166931 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"822359386","maxMember":200,"memberCount":54,"groupName":"高雅艺术复活5","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076298816,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1408,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"909166931","maxMember":200,"memberCount":4,"groupName":"IzumiKonata、we1l、eplor.wav、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"822359386","maxMember":200,"memberCount":54,"groupName":"高雅艺术复活5","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076298816,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1408,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 719670912 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"485868537","maxMember":200,"memberCount":101,"groupName":"窝囊废断头台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134338,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2163776,"authGroupType":0,"groupCreditLevel":4,"groupFlagExt3":1074798720,"groupOwnerId":{"memberUin":"0","memberUid":"u_1ndf-5J-jY2wkVw-4wnVSw"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"485868537","maxMember":200,"memberCount":101,"groupName":"窝囊废断头台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134338,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2163776,"authGroupType":0,"groupCreditLevel":4,"groupFlagExt3":1074798720,"groupOwnerId":{"memberUin":"0","memberUid":"u_1ndf-5J-jY2wkVw-4wnVSw"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 567962184 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 485868537 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"618769434","maxMember":200,"memberCount":2,"groupName":"IzumiKonata、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"618769434","maxMember":200,"memberCount":2,"groupName":"IzumiKonata、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"567962184","maxMember":200,"memberCount":56,"groupName":"Lollipop Client ♥ 交流群","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":590033,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"1633853286","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2162784,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":128,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"567962184","maxMember":200,"memberCount":56,"groupName":"Lollipop Client ♥ 交流群","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":590033,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":true,"groupShutupExpireTime":"0","personShutupExpireTime":"1633853286","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":2162784,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":128,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 618769434 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"719670912","maxMember":200,"memberCount":17,"groupName":"窝囊废杀戮台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134336,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1075905600,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1152,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"719670912","maxMember":200,"memberCount":17,"groupName":"窝囊废杀戮台","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":336134336,"isConf":false,"hasModifyConfGroupFace":true,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1075905600,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1152,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"909166931","maxMember":200,"memberCount":4,"groupName":"IzumiKonata、we1l、eplor.wav、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 909166931 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"822359386","maxMember":200,"memberCount":54,"groupName":"高雅艺术复活5","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076298816,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1408,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"822359386","maxMember":200,"memberCount":54,"groupName":"高雅艺术复活5","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":true,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076298816,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":1408,"groupOwnerId":{"memberUin":"0","memberUid":"u_rUVK-8Mv_Bpn0e8U5qu8gg"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 719670912 members success 

5/27/2024, 8:10:42 PM 2128440478(2128440478): update group {"groupCode":"909166931","maxMember":200,"memberCount":4,"groupName":"IzumiKonata、we1l、eplor.wav、g","groupStatus":0,"memberRole":2,"isTop":false,"toppedTimestamp":"0","privilegeFlag":67633344,"isConf":true,"hasModifyConfGroupFace":false,"hasModifyConfGroupName":false,"remarkName":"","hasMemo":false,"groupShutupExpireTime":"0","personShutupExpireTime":"0","discussToGroupUin":"0","discussToGroupMaxMsgSeq":0,"discussToGroupTime":0,"groupFlagExt":1076036672,"authGroupType":0,"groupCreditLevel":5,"groupFlagExt3":33556352,"groupOwnerId":{"memberUin":"0","memberUid":"u_hGX0eIHa7qO67Uj_7egTVA"}} 

5/27/2024, 8:10:42 PM 2128440478(2128440478): get group 822359386 members success 

5/27/2024, 8:10:43 PM 2128440478(2128440478): self info {"uid":"u_fcwSngIPZP-oFBGt30HSSw","qid":"","uin":"2128440478","nick":"g","remark":"","longNick":"","avatarUrl":"","birthday_year":1902,"birthday_month":1,"birthday_day":1,"sex":0,"topTime":"0","constellation":12,"shengXiao":3,"kBloodType":0,"homeTown":"0-0-0","makeFriendCareer":0,"pos":"","eMail":"","phoneNum":"11122223333","college":"","country":"","province":"","city":"","postCode":"","address":"","isBlock":false,"isSpecialCareOpen":false,"isSpecialCareZone":false,"ringId":"0","regTime":1552137879,"interest":"","termType":999,"labels":[],"qqLevel":{"crownNum":0,"sunNum":0,"moonNum":2,"starNum":0},"isHideQQLevel":0,"privilegeIcon":{"jumpUrl":"https://club.vip.qq.com/privilege?_wv=16777218&_wwv=68&_nav_bgclr=ffffff&_nav_titleclr=ffffff&_nav_txtclr=ffffff&_nav_alpha=0&_wvx=10&_proxy=1","openIconList":[],"closeIconList":[{"jumpUrl":"https://h5.qzone.qq.com/bigVip/home?_wv=16778243&qzUseTransparentNavBar=1&_wwv=1&_ws=32&openpay=1&_proxy=1&source=dhyzrtdzlk","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/dhybigv2/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/ae45493fb5ac77b09325854c1e9bf010","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":113,"level":0,"flag":0},{"jumpUrl":"https://club.vip.qq.com/index?open_kuikly_info=%7B%22qqmc_config%22%3A%22vas_kuikly_config%22%2C%22page_name%22%3A%22vas_qqvip_root_page%22%2C%22bundle_name%22%3A%22vas_qqvip_root_page%22%7D&page_name=vas_qqvip_root_page&aid=mvip.p.cl.zlk_vipicon&from=icon","iconUrl":"","iconPath":"","deluxeIconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/svipbig/gray_0.png","deluxeIconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/60bedf5504acea5505c54d817c4d2f30","isBig":0,"type":1,"level":0,"flag":0},{"jumpUrl":"https://h5.qzone.qq.com/vip/home?_wv=16778243&qzUseTransparentNavBar=1&_wwv=1&_ws=32&from=coupon&aid=zrtzlkdwx&open_kuikly_info=%7B%22qqmc_config%22%3A%22vas_kuikly_config%22%2C%22page_name%22%3A%22vas_qqvip_root_page%22%2C%22bundle_name%22%3A%22vas_qqvip_root_page%22%7D&page_name=vas_qqvip_root_page&pageType=YellowDiamond&trace_detail=base64-eyJhcHBpZCI6Inpsa3piIiwicGFnZV9pZCI6IjEifQ%3D%3D","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/yellowbig/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/211d56fc7e153030199e4b4f2f50662f","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":102,"level":0,"flag":0},{"jumpUrl":"https://h5.qzone.qq.com/v2/vip/card/page/home?_wv=16778146&tab=prize&enteranceId=profileicon","iconUrl":"https://tianquan.gtimg.cn/shoal/qqgxh/6b32592d-8f6a-4c83-9cf4-da25291f66eb.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/d076eaa892dea42e74f62f28e0bca3c3","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":117,"level":0,"flag":0},{"jumpUrl":"https://club.vip.qq.com/sp?_proxy=1&_wv=16777216","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/svipmuv3/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/0000139aab66620d2a9bf96d4ea51db2","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":109,"level":0,"flag":0},{"jumpUrl":"https://pay.qq.com/h5/shop.shtml?pf=__mds_sq_myinf&hash=%2forder%2f18%2fbiz%2f24%3fisIpZone%3d1%26shelfTab%3d24","iconUrl":"","iconPath":"","deluxeIconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/greenupbigv2/gray_0.png","deluxeIconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/a58602fff3f350a381143a0c1ad431d1","isBig":0,"type":103,"level":0,"flag":0},{"jumpUrl":"https://club.vip.qq.com/sp?_proxy=1&_wv=16777216","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/svipspv3/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/c8c189247e11f75e20fbd61a786f60c5","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":107,"level":0,"flag":0},{"jumpUrl":"https://pay.qq.com/h5/shop.shtml?pf=__mds_sq_myinf&hash=%2Forder%2F20%2Fbiz%2F30%3FisIpZone%3D1","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/filmv5/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/4942fc4e695dc18686f52652b1570f52","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":4,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/wkclub/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/6a31e523da7a30f3a4fa6f7312679433","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":108,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/yellowlove/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/836b5f56b878157ce6938a5e67566da5","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":104,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/redv2/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/4b42f41f74705d84969cd62ae6830694","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":101,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/docvipv2/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/3bb4ad2845eb6cbeb4a91b354a6b5309","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":116,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/cloudv2/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/85fde79e9e0c3e6b3ad07f9081aea0bf","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":105,"level":0,"flag":0},{"jumpUrl":"","iconUrl":"https://qqvip-web.cdn-go.cn/imgcache_privilege/latest/cf/gray_0.png","iconPath":"C:\\Users\\IzumiKonata\\Documents\\Tencent Files\\2128440478\\nt_qq\\nt_data\\PrivilegeIcon/827713b9923a6590b5dc1f2aacedc769","deluxeIconUrl":"","deluxeIconPath":"","isBig":0,"type":115,"level":0,"flag":0}]},"isHidePrivilegeIcon":0,"photoWall":{"picList":[]},"vipFlag":false,"yearVipFlag":false,"svipFlag":false,"vipLevel":1,"status":10,"qidianMasterFlag":0,"qidianCrewFlag":0,"qidianCrewFlag2":0,"extStatus":0,"recommendImgFlag":0,"disableEmojiShortCuts":0,"pendantId":"0","vipNameColorId":"0"} 

5/27/2024, 8:10:46 PM g(2128440478): ws connect / 

5/27/2024, 8:10:46 PM g(2128440478): event上报ws客户端已连接 

5/27/2024, 8:10:46 PM g(2128440478): ws 消息上报  {"time":1716811846,"self_id":2128440478,"post_type":"meta_event","meta_event_type":"lifecycle","sub_type":"connect"} 

5/27/2024, 8:10:46 PM g(2128440478): 收到正向Websocket消息 {"action":"get_version_info","echo":0} 

5/27/2024, 8:10:46 PM g(2128440478): ws 消息上报  {"status":"ok","retcode":0,"data":{"app_name":"LLOneBot","protocol_version":"v11","app_version":"3.26.2"},"message":"","wording":"","echo":0} 

5/27/2024, 8:10:46 PM g(2128440478): 收到正向Websocket消息 {"action":"get_login_info","echo":1} 

5/27/2024, 8:10:46 PM g(2128440478): ws 消息上报  {"status":"ok","retcode":0,"data":{"user_id":2128440478,"nickname":"g"},"message":"","wording":"","echo":1} 

5/27/2024, 8:10:46 PM g(2128440478): 收到正向Websocket消息 {"action":"get_friend_list","echo":2} 

5/27/2024, 8:10:46 PM g(2128440478): ws 消息上报  {"status":"ok","retcode":0,"data":[{"user_id":3231656401,"nickname":"水不在深","remark":"","sex":"unknown","level":0},{"user_id":1096984103,"nickname":"Sh1v3ring","remark":"[服主]LaoXGod","sex":"unknown","level":0},{"user_id":2905930563,"nickname":"AlanBacker","remark":"","sex":"female","level":0},{"user_id":2685660551,"nickname":"奥利奥","remark":"周奥","sex":"unknown","level":0},{"user_id":3624530598,"nickname":"𝓜𝔂𝓽𝓱𝓲𝔃𝓲𝓷𝓰","remark":"","sex":"unknown","level":0},{"user_id":2951581542,"nickname":"吃掉奥利奥","remark":"","sex":"female","level":0},{"user_id":2128440478,"nickname":"g","remark":"","sex":"male","level":0},{"user_id":2030752250,"nickname":"IzumiKonata","remark":"","sex":"unknown","level":0},{"user_id":2728694055,"nickname":"eplor.wav","remark":"","sex":"unknown","level":0},{"user_id":1171360723,"nickname":".","remark":"","sex":"unknown","level":0},{"user_id":2033174100,"nickname":"米米(`・ω・´)ฅ🍋","remark":"","sex":"unknown","level":0}],"message":"","wording":"","echo":2} 

5/27/2024, 8:10:46 PM g(2128440478): 收到正向Websocket消息 {"action":"get_group_list","echo":3} 

5/27/2024, 8:10:46 PM g(2128440478): ws 消息上报  {"status":"ok","retcode":0,"data":[{"group_id":485868537,"group_name":"窝囊废断头台","member_count":101,"max_member_count":200},{"group_id":567962184,"group_name":"Lollipop Client ♥ 交流群","member_count":56,"max_member_count":200},{"group_id":618769434,"group_name":"IzumiKonata、g","member_count":2,"max_member_count":200},{"group_id":719670912,"group_name":"窝囊废杀戮台","member_count":17,"max_member_count":200},{"group_id":822359386,"group_name":"高雅艺术复活5","member_count":54,"max_member_count":200},{"group_id":909166931,"group_name":"IzumiKonata、we1l、eplor.wav、g","member_count":4,"max_member_count":200}],"message":"","wording":"","echo":3} 

5/27/2024, 8:10:47 PM g(2128440478): ntqq api timeout IPC_UP_2, ns-ntApi-2, nodeIKernelGroupService/getGroupList ["nodeIKernelGroupService/getGroupList",{"force_update":true},null] 

5/27/2024, 8:10:50 PM g(2128440478): setting window created 

5/27/2024, 8:10:50 PM g(2128440478): llonebot current version ["3","26","2"] 

5/27/2024, 8:10:50 PM g(2128440478): llonebot last version [""]

补充信息

No response

IzumiiKonata commented 5 months ago

经测试,Bot.getGroup(long groupID)Group.get(long id)也存在问题, Bot.getGroup在未接收到指定群聊消息前会爆空指针, Group.get(long id)在未接收到指定群友消息前会爆空指针。

MrXiaoM commented 5 months ago

我猜是异步问题?唔… 这块我没加锁,我也不确定是不是这块的问题。 最近在做别的项目和准备考试,暂时没有空闲时间去测试,先暂时搁置

MrXiaoM commented 5 months ago

mark 一下,可能与 #52 是相同问题

IzumiiKonata commented 5 months ago

经测试,本issue中提到的所有问题均已在 commit aa6f2b9 中解决。