@karlatemp 感谢
M
MovingCloud 发布的最新帖子
-
kotlin如何导入jar依赖?
我调用了一个io.netty.util的jar包,结果跟kotlin混合编程的时候似乎是读不到这个依赖的样子,我想问一下就是kotlin导入依赖的方法都有哪些?
-
RE: 收不到私聊消息?
@mashiro-hjl 你是不是也挂了其他框架?我换了个号正常了,所以我觉得可能是一个框架把私聊事件处理了以后其他地方就不会响应。
可以参考你手机电脑同时登陆QQ,如果两边都没开着私聊窗口的话收到消息的时候电脑会dddd,手机会弹悬浮窗,但是如果手机开着那个收到消息的私聊窗口的话电脑就不会响了,反之同样。 -
RE: 收不到私聊消息?
@karlatemp
版本mcl2.6.7,显示如下:
@movingcloud 在 收不到私聊消息? 中说:@nambers 是的
刚好过0点日志文件会新建了,我单独测试了一下,结果第一次的私聊消息不知道为什么又能收得到了,第二次以后又不行了。第一天的时候也是第一条消息能收到,后面的都没有但是之前复现不出来。
logs如下。[0m2021-07-02 00:19:55 V/Net 3149644886: Loading BdhSession from cache file[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Loading server list from cache.[0m [92m2021-07-02 00:19:55 I/Net 3149644886: Connected to server 60.28.172.102:443[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: wtlogin.exchange_emp[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Recv: LoginPacketResponse.Success[0m [92m2021-07-02 00:19:55 I/Net 3149644886: Saved account secrets to local cache for fast login.[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: StatSvc.register[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Recv: Response(StatSvc.register)[0m [92m2021-07-02 00:19:55 I/Net 3149644886: Syncing friend message history...[0m [92m2021-07-02 00:19:55 I/Net 3149644886: Awaiting ConfigPushSvc.PushReq.[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: StatSvc.GetDevLoginInfo[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Recv: StatSvc.GetDevLoginInfo.Response(deviceList.size=2)[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:19:55 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Syncing friend message history: Success.[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Start loading stranger list...[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Start loading friend list...[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: OidbSvc.0x5d2_0[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Recv: StrangerList.GetStrangerList.Response(result=0)[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Successfully loaded stranger list: 0 in total[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: OidbSvc.0x496[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Recv: TroopManagement.GetTroopConfig.Response(true)[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Start loading group list...[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: friendlist.getFriendGroupList[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Recv: FriendList.GetFriendGroupList.Response[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Loading friend list: 93/93[0m [0m2021-07-02 00:19:56 V/Net 3149644886: Send: friendlist.GetTroopListReqV2[0m [92m2021-07-02 00:19:56 I/Net 3149644886: Successfully loaded friend list: 93 in total[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetFriendGroupList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:57 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: ConfigPushSvc.PushReq.PushReqResponse.ServerListPush[0m [92m2021-07-02 00:19:58 I/Net 3149644886: Server list updated.[0m [92m2021-07-02 00:19:58 I/Net 3149644886: Server list: 58.251.106.143:443, 221.198.70.207:443, 157.255.13.220:8080, 60.28.172.102:80, 153.3.149.78:14000, 157.255.13.246:443, 221.198.69.51:80, 153.3.50.180:80, msfwifi.3g.qq.com:8080, 221.198.69.95:80.[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Saving bdh session to cache[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Saving server list to cache[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: ConfigPushSvc.PushResp[0m [92m2021-07-02 00:19:58 I/Net 3149644886: ConfigPushSvc.PushReq: Server updated.[0m [96m2021-07-02 00:19:58 D/Net 3149644886: Received unknown commandName: ConfigPushSvc.PushDomain[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: ConfigPushSvc.PushReq.PushReqResponse.ConfigPush[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Saving bdh session to cache[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: ConfigPushSvc.PushResp[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:58 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:19:59 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:20:00 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [0m2021-07-02 00:20:00 V/Net 3149644886: Send: friendlist.GetTroopMemberListReq[0m [0m2021-07-02 00:20:00 V/Net 3149644886: Recv: FriendList.GetTroopMemberList.Response[0m [92m2021-07-02 00:20:00 I/Net 3149644886: Successfully loaded group list: 11 in total.[0m [92m2021-07-02 00:20:00 I/Net 3149644886: Scheduled key refresh in 23h 59min 55.0s.[0m [92m2021-07-02 00:20:00 I/Net 3149644886: Scheduled refresh login session in 19d 23h 59min 55.0s.[0m [0m2021-07-02 00:20:16 V/Net 3149644886: Send: MessageSvc.PbSendMsg[0m [0m2021-07-02 00:20:16 V/Net 3149644886: Recv: MessageSvcPbSendMsg.Response.SUCCESS[0m [0m2021-07-02 00:20:29 V/Net 3149644886: Recv: RequestPushNotify(uin=3149644886, ctype=1, strService=MessageSvc, strCmd=PushNotify, usMsgType=166, stMsgInfo=net.mamoe.mirai.internal.network.protocol.data.jce.MsgInfo@20d015f3)[0m [0m2021-07-02 00:20:29 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:20:29 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:20:29 V/Net 3149644886: Send: MessageSvc.PbSendMsg[0m [0m2021-07-02 00:20:29 V/Net 3149644886: Recv: MessageSvcPbSendMsg.Response.SUCCESS[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Recv: RequestPushNotify(uin=3149644886, ctype=1, strService=MessageSvc, strCmd=PushNotify, usMsgType=166, stMsgInfo=net.mamoe.mirai.internal.network.protocol.data.jce.MsgInfo@633c0dcc)[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:20:54 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:20:55 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:20:55 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:20:55 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:20:55 V/Net 3149644886: Send: Heartbeat.Alive[0m [0m2021-07-02 00:20:55 V/Net 3149644886: Recv: Heartbeat.Alive.Response[0m [0m2021-07-02 00:21:09 V/Net 3149644886: Recv: RequestPushNotify(uin=3149644886, ctype=1, strService=MessageSvc, strCmd=PushNotify, usMsgType=166, stMsgInfo=net.mamoe.mirai.internal.network.protocol.data.jce.MsgInfo@2c353ba7)[0m [0m2021-07-02 00:21:09 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:10 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Recv: RequestPushNotify(uin=3149644886, ctype=1, strService=MessageSvc, strCmd=PushNotify, usMsgType=166, stMsgInfo=net.mamoe.mirai.internal.network.protocol.data.jce.MsgInfo@8dbfdc3)[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:24 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:25 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m [0m2021-07-02 00:21:25 V/Net 3149644886: Send: MessageSvc.PbGetMsg[0m [0m2021-07-02 00:21:25 V/Net 3149644886: Send: MessageSvc.PbDeleteMsg[0m
-
RE: 收不到私聊消息?
@nambers
依赖指的是这个吧?我改成2.6.7以后还是不行,mcl的版本我也回退到2.6.7了,按理说相同版本是最不会出问题的吧
service里面用的就是kt的主类,示例程序默认的就是kt,Java的那边我也试过,也是一样群聊消息能触发,私聊没反应。
还有,我尝试了一下给好友发送信息
也是只有在群聊接收到消息的时候获取Bot然后获取好友发送能够正常发(上图部分代码正常运行),好友私聊的信息(subscribeAlways<FriendMessageEvent>)还是收不到,而且是连直接监听subscribeAlways<MessageEvent>的时候,好友私聊消息都不会触发