Nova-Committee / McBot

A mod allowed you to connect minecraft and QQ
Other
131 stars 17 forks source link

QQ群无法连接到服务器 #21

Closed Linwendong83 closed 2 years ago

Linwendong83 commented 2 years ago

服务器进入退出消息及玩家在服务器内发言转发到QQ群是正常的 QQ群消息无法被转发到服务器: [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: cn.evolvefield.mods.botapi.util.json.JSONException: Duplicate key "message_type" at 147 [character 148 line 1] [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.util.json.JSONTokener.syntaxError(JSONTokener.java:503) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.util.json.JSONObject.(JSONObject.java:218) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.util.json.JSONObject.(JSONObject.java:375) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.api.message.MessageJson.(MessageJson.java:47) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.core.service.MessageHandlerService.receiveMessage(MessageHandlerService.java:41) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at cn.evolvefield.mods.botapi.core.network.WebSocket.WebSocketClientHandler.channelRead0(WebSocketClientHandler.java:45) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:166) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:719) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:986) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) [11:16:02] [nioEventLoopGroup-2-1/INFO]: [STDERR]: at java.base/java.lang.Thread.run(Thread.java:833)

之后websocket连接中断

1.18.1fabric

配置文件 { "common": { "groupId":*41461919, "wsHost":"127.0.0.1", "wsPort":8080, "wsKey":"", "Enable":true, "Debuggable":false, "welcomeNotice":"欢迎加群~", "leaveNotice":"有人离开了我们qwq", "RECEIVE_ENABLED":true, "R_COMMAND_ENABLED":true, "R_CHAT_ENABLE":true, "SEND_ENABLED":true, "WELCOME_ENABLE":true, "JOIN_ENABLE":true, "LEAVE_ENABLE":true, "DEATH_ENABLE":true, "S_CHAT_ENABLE":true, "S_ADVANCE_ENABLE":true }

}