W
wuchen4588 发布的帖子
-
RE: 无法登录qq code=45
看看我这个https://mirai.mamoe.net/topic/2271/%E6%88%91%E6%84%8F%E5%A4%96%E5%8F%91%E7%8E%B0%E4%BA%86%E4%B8%80%E4%B8%AAcode45%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88
但是mirai版本必须在2.15.0以上 -
我意外发现了一个code45的解决方案
主要本方案针对的是二维码扫码登录,由于QQ登录机制问题,二维码登录必须要求本地网络环境登录。
方案1:在本地登录环境等后可以将已经登录好的服务器端文件打包后再扔到服务器启动(必须挂好自动登录)
坏处:退出后会激发二次登录,但是可以通过使用已经打包好的文件再次登录解决此问题方案2:在需要登录的QQ机器人服务器架设代理,通过挂上QQ机器人架设的代理来解决本地登录环境问题
坏处:有一点点小麻烦,加上可能会遇到IDC商的监管警告。好处是可以避免方案1的激发二次登录问题。 -
请问一下这是什么回事,mirai无法启动。
2023-01-01 11:49:31 I/main: Starting mirai-console... 2023-01-01 11:49:31 I/main: ==================================[ Mirai consosle 2.13.2 ]=================================== __ __ __ __ ______ __ | \ / \ \ | \/ \ | \ | ▓▓\ / ▓▓\▓▓ ______ ______ \▓▓ ▓▓▓▓▓▓\ ______ _______ _______ ______ | ▓▓ ______ | ▓▓▓\ / ▓▓▓ \/ \ | \| \ ▓▓ \▓▓/ \| \ / \/ \| ▓▓/ \ | ▓▓▓▓\ ▓▓▓▓ ▓▓ ▓▓▓▓▓▓\ \▓▓▓▓▓▓\ ▓▓ ▓▓ | ▓▓▓▓▓▓\ ▓▓▓▓▓▓▓\ ▓▓▓▓▓▓▓ ▓▓▓▓▓▓\ ▓▓ ▓▓▓▓▓▓\ | ▓▓\▓▓ ▓▓ ▓▓ ▓▓ ▓▓ \▓▓/ ▓▓ ▓▓ ▓▓ __| ▓▓ | ▓▓ ▓▓ | ▓▓\▓▓ \| ▓▓ | ▓▓ ▓▓ ▓▓ ▓▓ | ▓▓ \▓▓▓| ▓▓ ▓▓ ▓▓ | ▓▓▓▓▓▓▓ ▓▓ ▓▓__/ \ ▓▓__/ ▓▓ ▓▓ | ▓▓_\▓▓▓▓▓▓\ ▓▓__/ ▓▓ ▓▓ ▓▓▓▓▓▓▓▓ | ▓▓ \▓ | ▓▓ ▓▓ ▓▓ \▓▓ ▓▓ ▓▓\▓▓ ▓▓\▓▓ ▓▓ ▓▓ | ▓▓ ▓▓\▓▓ ▓▓ ▓▓\▓▓ \ \▓▓ \▓▓\▓▓\▓▓ \▓▓▓▓▓▓▓\▓▓ \▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓\▓▓▓▓▓▓▓ \▓▓▓▓▓▓ \▓▓ \▓▓▓▓▓▓▓ 2023-01-01 11:49:32 I/main: Backend: version 2.13.2, built on 2022-12-05 01:50:53. 2023-01-01 11:49:32 I/main: Frontend Terminal: version 2.13.2, provided by Mamoe Technologies 2023-01-01 11:49:32 I/main: Welcome to visit https://mirai.mamoe.net/ 2023-01-01 11:49:32 W/stderr: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 2023-01-01 11:49:32 W/stderr: SLF4J: Defaulting to no-operation (NOP) logger implementation 2023-01-01 11:49:32 W/stderr: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin 5000choyen v1.0.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin AutoGroup v2.0.3 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin Custom Reply v0.4.3 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin CaiyunAI v1.0.2 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin Chat Command v0.5.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin GenshinSign v0.3.7 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin HitHit v2.0.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin IlliteracyAuth v1.0.2 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin MCL Addon v1.2.2 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v1.10.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v1.10.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin net.mamoe.mirai-api-http v2.5.0 2023-01-01 11:49:35 I/MiraiNative: 当前系统: Windows Server 2012 R2 2023-01-01 11:49:35 I/MiraiNative: 当前架构: amd64 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin MiraiNative v2.0.3-cp 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin mirai-openai-plugin v1.0.7 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin mirai-selenium-plugin v2.2.4 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin MiraiBlackList v1.1.2 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin 点歌插件 v1.1.7 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin Molly v1.2.0 2023-01-01 11:49:35 I/plugin: Successfully loaded plugin PatPat v2.0.1 2023-01-01 11:49:36 I/plugin: Successfully loaded plugin pixiv插画 v1.6.1 2023-01-01 11:49:36 I/plugin: Successfully loaded plugin RecallKeyWords v1.4.3 2023-01-01 11:49:36 I/plugin: Successfully loaded plugin SteamHelper v1.0.2 2023-01-01 11:49:36 I/plugin: Successfully loaded plugin ThrowIt-Mirai v1.2 2023-01-01 11:49:36 I/plugin: Successfully loaded plugin MCL Addon v2.1.1 2023-01-01 11:49:36 I/main: Prepared built-in commands: autoLogin, help, login, logout, permission, status, stop 2023-01-01 11:49:36 I/5000choyen: 5000choyen 插件已成功加载 2023-01-01 11:49:36 I/AutoGroup: 开始折磨群友 2023-01-01 11:49:36 I/Custom Reply: HRS-AutoReply-Plugin-loaded 2023-01-01 11:49:36 I/stdout: [] 2023-01-01 11:49:37 I/stdout: [github.kloping.ST][Info] [01/01-11:49:37:031]=>WebExtension extension load 2023-01-01 11:49:37 I/stdout: [github.kloping.ST][Info] [01/01-11:49:37:131]=>start sptool success 2023-01-01 11:49:37 I/Custom Reply: AutoReply 服务启动成功 address: http://localhost:20044?key=2617e701-27b1-4bd7-b584-6a15fd0b4a1a 2023-01-01 11:49:37 W/stderr: 请在/conf/auto_reply/conf.json设置您的QQ以控制你的机器人 2023-01-01 11:49:37 I/stdout: [github.kloping.ST][Debug] [01/01-11:49:37:234]=>计时任务结束... 2023-01-01 11:49:37 I/CaiyunAI: 加载完毕 2023-01-01 11:49:38 I/GenshinSign: Genshin Plugin loaded 2023-01-01 11:49:38 W/stderr: 1 01, 2023 11:49:38 org.apache.coyote.AbstractProtocol init 2023-01-01 11:49:38 W/stderr: Ϣ: Initializing ProtocolHandler ["http-nio-20044"] 2023-01-01 11:49:38 W/stderr: 1 01, 2023 11:49:38 org.apache.catalina.core.StandardService startInternal 2023-01-01 11:49:38 W/stderr: Ϣ: Starting service [tomcat-default] 2023-01-01 11:49:38 W/stderr: 1 01, 2023 11:49:38 org.apache.catalina.core.StandardEngine startInternal 2023-01-01 11:49:38 W/stderr: Ϣ: Starting Servlet engine: [Apache Tomcat/9.0.55] 2023-01-01 11:49:38 E/GenshinSign: java.lang.NoClassDefFoundError: net/mamoe/mirai/console/util/CoroutineScopeUtils java.lang.NoClassDefFoundError: net/mamoe/mirai/console/util/CoroutineScopeUtils at genshin-sign-mirai-plugin-0.3.7.mirai.jar//top.colter.mirai.plugin.genshin.Listener.<init>(Listener.kt:21) at genshin-sign-mirai-plugin-0.3.7.mirai.jar//top.colter.mirai.plugin.genshin.Listener.<clinit>(Listener.kt) at genshin-sign-mirai-plugin-0.3.7.mirai.jar//top.colter.mirai.plugin.genshin.PluginMain.onEnable(PluginMain.kt:40) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:131) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:305) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:175) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:336) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:508) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.itxtech.mcl.Utility.bootJars(Utility.java:86) at org.itxtech.mcl.Utility.bootJars(Utility.java:76) at org.itxtech.mcl.Utility.bootMirai(Utility.java:98) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:196) at org.itxtech.mcl.Loader.main(Loader.java:84) Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.console.util.CoroutineScopeUtils at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:476) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522) at net.mamoe.mirai.console.internal.plugin.JvmPluginClassLoaderN.loadClass(JvmPluginClassLoader.kt:435) ... 28 more 2023-01-01 11:49:38 W/stderr: 1 01, 2023 11:49:38 org.apache.coyote.AbstractProtocol start 2023-01-01 11:49:38 W/stderr: Ϣ: Starting ProtocolHandler ["http-nio-20044"] 2023-01-01 11:49:39 I/HitHit: 缓存已自动清理 2023-01-01 11:49:39 I/HitHit: 锤人插件已加载 2023-01-01 11:49:39 I/IlliteracyAuth: Plugin loaded 2023-01-01 11:49:39 I/MCL Addon: iTXTech MCL Version: 2.1.2-61c8bd8 2023-01-01 11:49:39 W/net.mamoe.mirai-api-http: USING INITIAL KEY, please edit the key 2023-01-01 11:49:39 I/net.mamoe.mirai-api-http: Starting Mirai HTTP Server in 0.0.0.0:8080 2023-01-01 11:49:39 I/Mirai HTTP API: Http api server is running with authKey: INITKEYROASlTyB 2023-01-01 11:49:39 I/net.mamoe.mirai-api-http: 心跳模块启用状态: false 2023-01-01 11:49:39 I/net.mamoe.mirai-api-http: 上报模块启用状态: false 2023-01-01 11:49:39 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while enabling net.mamoe.mirai-api-http at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:311) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:35) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:50) at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:175) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:336) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:508) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:177) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:176) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:54) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.itxtech.mcl.Utility.bootJars(Utility.java:86) at org.itxtech.mcl.Utility.bootJars(Utility.java:76) at org.itxtech.mcl.Utility.bootMirai(Utility.java:98) at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113) at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123) at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196) at org.itxtech.mcl.Loader.tryCatching(Loader.java:151) at org.itxtech.mcl.Loader.start(Loader.java:196) at org.itxtech.mcl.Loader.main(Loader.java:84) Caused by: net.mamoe.mirai.console.permission.PermissionRegistryConflictException: Conflicting Permission registry. new: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>)), existing: PermissionImpl(id=net.mamoe.mirai-api-http:*, description='The base permission', parent=PermissionImpl(id=*:*, description='The root permission', parent=<self>))