-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
支持签名服务器 #2716
Comments
同求 现在mirai基本没法正常工作 但gocq有了签名服务器之后就很稳定了 |
真的很稳定吗?Mrs4s/go-cqhttp#2249 |
基本稳定的啊,目前体验是:挂上去1小时内基本必定封号一次,之后人脸识别完,之后就好了不封了。 报告反复冻结的很少。 |
不推荐使用,目前容易冻结,而且目前有消息有人被封了90天 |
个例吧,好几个群都没听说,二次冻结的倒是有 不推荐使用也没辙啊,现在8.88被针对,8.9登不上,手表发不出群消息,更难受啊。 |
mirai 并不会考虑内置任何第三方 签名/加密 服务,而是提供 SPI 让用户自行实现。 |
合并了再关闭吧 |
太好了,能给个链接地址吗,我立刻部署试试看 |
太好了,简直振奋人心 |
(已过时)克隆 core/pkgsso 分支,查看 EncryptService.kt 了解对接方法。 构建 core/pkgsso 分支,发布到 Maven Local配置环境build.gradle plugins {
...
id 'net.mamoe.mirai-console' version '2.15.0-RC'
}
dependencies {
compileOnly "net.mamoe:mirai-core:<your local version>"
compileOnly "net.mamoe:mirai-core-utils-jvm:<your local version>"
} 实现接口package com.example;
import net.mamoe.mirai.internal.spi.EncryptService;
public class YourEncryptService implements EncryptService {
} 需要注意的是,EncryptService SPI 是 core internal 的,导入 EncryptService 时会有错误提示。 在 Java 忽略即可,在 Kotlin 则添加 IDE 给出 suppress。 注册实现public final class ConsolePluginMode extends JavaPlugin {
@Override
public void onLoad(@NotNull PluginComponentStorage storage) {
Services.INSTANCE.register(
"net.mamoe.mirai.internal.spi.EncryptService",
"com.example.YourEncryptService",
YourEncryptService::new
);
}
} |
Mrs4s/go-cqhttp#2245 已经通过支持第三方签名服务器解决了登录问题,目前使用了一天没有遇到问题,
mirai
这边是否也考虑支持一下?The text was updated successfully, but these errors were encountered: