qsign —— 签名 不要指望用来解决code=45
-
@MrXiaoM 额...有代码示例吗?光这样说我也不知道要怎么写...
// 设置签名cmd白名单,请改为读取 src/main/resources/cmd_whitelist.txt QSignService.Factory.cmdWhiteList = new ArrayList<>(); // 设置使用签名服务的协议列表 // 必要时请使用 BotProtocolKt.applyProtocolInfo(MiraiProtocol.ANDROID_PHONE, Json.Default.parseToJsonElement(json)); 从 json 加载协议变更 QSignService.Factory.supportedProtocol = new ArrayList<>(); // 注册签名服务 QSignService.Factory.register();
-
List<BotConfiguration.MiraiProtocol> list = new ArrayList<>(); // 假如你 ANDROID_PHONE 的协议版本是 8.9.63 就用 ANDROID_PHONE,不是的话,看你发的代码里的注释 list.add(BotConfiguration.MiraiProtocol.ANDROID_PHONE); QSignService.Factory.supportedProtocol = list;
很难想象开发者不会列表操作
-
This post is deleted! -
@zojnlg 首先,8.9.73 有更多针对签名服务的检测,我在 README 里也说了只推荐使用目前稳定的 8.9.63。
其次,你确定你的 ANDROID_PHONE 协议版本是 8.9.73 吗 -
This post is deleted! -
@zojnlg
BotProtocolKt.applyProtocolInfo
就是设置协议版本,需要协议版本相关的 json 文件,在 txlib 文件夹里有相关文件 -
This post is deleted! -
@zojnlg 未配置 cmiWhitelist
-
This post is deleted! -
@zojnlg 注释有写
-
This post is deleted! -
请问一下我的mirai出现了无法启动的问题,应该已经是2.15.0版本的,但是添加了qsign后无法正常启动mcl,可以帮忙看一下吗
2023-08-14 15:09:14 I/main: Backend: version 2.15.0, built on 2023-07-10 20:57:17. 2023-08-14 15:09:14 I/main: Frontend Terminal: version 2.15.0, provided by Mamoe Technologies 2023-08-14 15:09:14 I/main: Welcome to visit https://mirai.mamoe.net/ 2023-08-14 15:09:18 I/plugin: Successfully loaded plugin MaimaiBot v1.3.8 2023-08-14 15:09:18 I/plugin: Successfully loaded plugin Chat Command v0.6.0 2023-08-14 15:09:18 I/plugin: Successfully loaded plugin mirai-api-http v2.9.1 2023-08-14 15:09:18 W/io.netty.util.internal.MacAddressUtil: Failed to find a usable hardware address from the network interfaces; using random bytes: e3:ef:e4:cd:65:a5:3f:42 2023-08-14 15:09:18 I/plugin: Successfully loaded plugin mirai-login-solver-sakura v0.0.12 2023-08-14 15:09:18 I/QSign: Loading QSign v1.0.7 (unidbg-fetch-qsign v1.1.7b2) 2023-08-14 15:09:18 I/QSign: 正在 Mirai 2.15.0 上运行 2023-08-14 15:09:18 I/QSign: 签名服务目录: /data/data/com.termux/files/home/mcl/txlib/8.9.63 2023-08-14 15:09:18 I/plugin: Cannot load plugin QSign v1.0.7 2023-08-14 15:09:18 E/main: Failed to init MiraiConsole. net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while loading QSign v1.0.7 at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:288) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:39) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt) at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt:54) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadPluginNoEnable(PluginManagerImpl.kt:96) at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAllPluginsUsingBuiltInLoaders$mirai_console(PluginManagerImpl.kt:152) at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:302) at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:512) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:182) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:181) at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:59) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) 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.io.FileNotFoundException: txlib/8.9.63/dtconfig.json (Permission denied) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:216) at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) at kotlin.io.FilesKt__FileReadWriteKt.readText(FileReadWrite.kt:125) at qsign-1.0.7.mirai2.jar//com.tencent.mobileqq.dt.model.FEBound.initAssertConfig(FEBound.java:87) at qsign-1.0.7.mirai2.jar//top.mrxiaom.qsign.PluginMain.onLoad(PluginMain.kt:36) at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnLoad$mirai_console(JvmPluginInternal.kt:373) at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:286) ... 23 more
-
@LittleKa3235 权限不足
-
@MrXiaoM 可以稍微指点一下吗,本身前面是一直按照着使用 Termux 简单的在安卓手机上 运行 Mirai
的指引进行的操作 -
@LittleKa3235 你这很明显的
Permission denied
啊,自行想办法给 txlib 文件夹改权限 -
@MrXiaoM 好的,谢谢,我尝试授予termux root权限解决了
-
-
qsign 1.0.8 更新:
- 检测到环境为 Termux 时禁用本插件
- 将签名服务不支持某协议的提示改为中文
- 支持 Java 8
- 更简单、更少坑的 mirai-core 使用方法
如果你的 Termux 此前可以加载本插件正常使用,请到 Actions 下载最新构建,并到
config/top.mrxiaom.qsign/config.yml
将 ignore-termux 开启 -
请问这个报错是什么问题导致的呢?
I/QSign: Loading QSign v1.0.8 (unidbg-fetch-qsign v1.1.7b2)
I/QSign: 正在 Mirai 2.15.0 上运行Caused by: kotlin.UninitializedPropertyAccessException: lateinit property basePath has not been initialized
更:
换1.0.7就没有这个问题了,不知道是上面的错误是什么触发的。
PS:感谢楼主,这个真的特别好用✨✨✨~~~
感觉自从报各种登录错误自己有好久好久没登录机器人了 -
楼主您好,我跟楼上一样更新1.0.8之后启动时报错了,更换1.0.7后可以正常使用
-