ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
目前能接收到消息,无法发出消息
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
目前能接收到消息,无法发出消息
还有就是 想请问下 ANDROID_ID={android_id} 这里的 {android_id} 在哪里获取,或者是说可以自己随便定义还是?
你好师傅,是使用的mirai-core-all-2.15.0-ea.jar,然后使用docker环境部署了验证
docker run -d --restart=always --name qsign -p 8080:8080 -e ANDROID_ID={android_id} xzhouqd/qsign:8.9.63
然后更新了魔改版的 fix-protocol-version-1.8.4-disabletlv.jar
下载了gson-2.10.1.jar 到libs目录
现在就是不太会用 MiraiSignHandler.jar 这个插件,看需要怎么操作比较好
@WorldLeen 在 MiraiSignHandler —— Mirai对接Sign签名服务器,解决登录code=45失败和签名消息发送风控 中说:
4.下载和安装我的修复插件
MiraiSignHandler.jar
添加到前置,在Bot运行之前加入以下代码:
FixProtocolVersion.update(); //先执行FixProtocolVersion的修复,我的插件才能获取正确的协议版本
MiraiSignHandler.register();
上面说的操作,是需要 java -jar 执行那个jar包,还是怎么操作,不太明白“添加到前置”具体是什么意思,感谢大佬回复
查看机器人账号的日志,能看到以下异常
^[[31m2021-12-13 18:53:58 E/Net 2107649664: Exception in decoding packet.
java.lang.IllegalStateException: Cannot find error message, unknown login result type: 180, TLVMap = {0x00000161(353)=00 01 01 72 00 18 EE 43 AE 58 0F 62 E3 D2 F8 74 DE 80 4E 9D E5 E6 16 FE 16 8E 52 6A 08 65}
at net.mamoe.mirai.internal.network.protocol.packet.login.WtLogin$Login.decode(WtLogin.kt:188)
at net.mamoe.mirai.internal.network.components.PacketCodecImpl.processBody(PacketCodec.kt:367)
at net.mamoe.mirai.internal.network.impl.netty.NettyNetworkHandler$PacketDecodePipeline$send$1.invokeSuspend(NettyNetworkHandler.kt:175)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Unknown Source)
已更新至2.4.0版本
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
目前能接收到消息,无法发出消息