CHACCA165 发布的最新帖子
-
RE: QSign 9.0.55-9.0.95(公益 API发布)
@zhaodice 在 试图复活qsign,基于9.0.56版本,再捞一把。 中说:
@CHACCA165 我的上帝,我现在看见txlib我就烦,你再如此这般我就要用靴子狠狠地踢你的屁股,我发誓我会这样做的
......这个必须放一个文件内去读取,是不是txlib没关系。。。。屁股给你,教我登录
-
RE: QSign 9.0.55-9.0.95(公益 API发布)
8.9.58中放的android_pad.json,```{
"9.0.56": {
"base_url": "https://qsign.trpgbot.com",
"type": "fuqiuluo/unidbg-fetch-qsign",
"key": "miraibbs"
},
} -
RE: QSign 9.0.55-9.0.95(公益 API发布)
@XC_084 在 试图复活qsign,基于9.0.56版本,再捞一把。 中说:
不是哥们,会配签名服务器不会配协议?
把这个{ "apk_id": "com.tencent.mobileqq", "app_id": 537220362, "sub_app_id": 537220362, "app_key": "0S200MNJT807V3GE", "sort_version_name": "9.0.56.16830", "build_time": 1713424357, "apk_sign": "a6b745bf24a2c277527716f6f36eb68d", "sdk_version": "6.0.0.2560", "sso_version": 21, "misc_bitmap": 150470524, "main_sig_map": 34869472, "sub_sig_map": 66560, "dump_time": 1713424357, "qua": "V1_AND_SQ_9.0.56_6372_YYB_D", "protocol_type": 6 }
创一个android_pad.json的文件放根目录
把这个{ "9.0.56": { "base_url": "https://qsign.trpgbot.com", "type": "fuqiuluo/unidbg-fetch-qsign", "key": "miraibbs" }, }
创一个KFCFactory.json在根目录,然后bot用pad协议登录,不就完事了
我按照这样还是45code=45, title=禁止登录, message=登录失败,请前往QQ官网im.qq.com下载最新版QQ后重试,或通过问题反馈与我们联系
File file = new File("txlib\8.9.58");
QSignService.Factory.init(file);
QSignService.Factory.loadProtocols(null);
QSignService.Factory.register();
Bot bot = BotFactory.INSTANCE.newBot(xxxx, "xxxxx", botConfiguration -> {
botConfiguration.setProtocol(BotConfiguration.MiraiProtocol.ANDROID_PAD);
botConfiguration.fileBasedDeviceInfo();
}); -
RE: QSign 9.0.55-9.0.95(公益 API发布)
@zhaodice 在 试图复活qsign,基于9.0.56版本,再捞一把。 中说:
@兴亡谁人定 肯定不能这样用,你要把协议文件保存为ANDROID_PAD.json,在安装了fix-protocol-version插件的mirai控制台输入命令
protocol load ANDROID_PAD
加载该协议,确保支持9.0.56,然后修改KFCFactory.json
{ "9.0.56": { "base_url": "https://qsign.trpgbot.com", "type": "fuqiuluo/unidbg-fetch-qsign", "key": "miraibbs" }, }
然后想办法在mirai里通过 ANDROID_PAD 协议登录账号
怎么玩呀,没看懂,我是mirai-core-jvm2.16.0版本开发,之前使用的是mrxiaom.qsign的txlib8.9.85掉线之后就code45了,你发的这个不知道怎么搞呀,能详说吗,或者给个其他类似文档了解一下
-
RE: qsign —— 签名 不要指望用来解决code=45
大佬,刚开始接触 实在不会- -
引用的jar是qsign-1.0.9.mirai2.jar
我是使用这样登录的
try {
File file = new ClassPathResource("txlib/8.9.63").getFile();
QSignService.Factory.init(file);
} catch (IOException e) {
throw new RuntimeException(e);
}
QSignService.Factory.loadProtocols(null);
QSignService.Factory.register();BotFactory.INSTANCE.newBot()
Failed to fetch ECDH public key from server, using default key instead
java.lang.NoClassDefFoundError: kotlin/time/DurationUnit
at net.mamoe.mirai.internal.network.components.EcdhInitialPublicKeyUpdaterImpl.refreshInitialPublicKeyAndApplyEcdh(EcdhInitialPublicKeyUpdater.kt:94)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:258)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$login$1.invokeSuspend(SsoProcessor.kt)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at net.mamoe.mirai.internal.deps.io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.ClassNotFoundException: kotlin.time.DurationUnit
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 34 more
然后会显示滑动验证码Failed with auth method: Password@1990154951
java.lang.NoSuchMethodError: 'java.lang.String kotlin.io.ConsoleKt.readlnOrNull()'
at net.mamoe.mirai.utils.StandardCharImageLoginSolver$1.invokeSuspend(LoginSolver.jvm.kt:47)
at net.mamoe.mirai.utils.StandardCharImageLoginSolver$1.invoke(LoginSolver.jvm.kt)
at net.mamoe.mirai.utils.StandardCharImageLoginSolver$1.invoke(LoginSolver.jvm.kt)
at net.mamoe.mirai.utils.StandardCharImageLoginSolver$input$1$1.invokeSuspend(LoginSolver.jvm.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
ECDH key is invalid, start to fetch ecdh public key from server.
Failed to fetch ECDH public key from server, using default key instead
java.lang.NoClassDefFoundError: kotlin/time/DurationUnit
at net.mamoe.mirai.internal.network.components.EcdhInitialPublicKeyUpdaterImpl.refreshInitialPublicKeyAndApplyEcdh(EcdhInitialPublicKeyUpdater.kt:94)
at net.mamoe.mirai.internal.network.components.SsoProcessorImpl.login(SsoProcessor.kt:258)
at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:247)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Caused by: java.lang.ClassNotFoundException: kotlin.time.DurationUnit
... 9 more -
Java版 能正常接收消息 无法发送消息
mirai-core-jvm 2.15.0-M1 | mirai-console 2.15.0-M1 | mirai-console-dev-qrlogin-0.1.7.mirai2 | mirai-login-solver-sakura-0.0.10.mirai2 | fix-protocol-version-1.5.1.mirai2
bot.getEventChannel().subscribeAlways(GroupMessageEvent.class, event -> {
System.out.println(event.getMessage().contentToString());
event.getGroup().sendMessage(event.getMessage().contentToString());
})2023-06-02 13:41:13 V/Bot xxx: [xxx(xxx)] (xxx) -> 1
1
2023-06-02 13:41:13 V/Net xxx: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)
2023-06-02 13:41:13 V/Net xxx: Recv: MessageSvc.PbSendMsg
2023-06-02 13:41:16 V/Bot xxx: Group(xxx) <- 1接收消息正常的救救孩子吧,搞了1小时了