Skip to content

Commit

Permalink
fix: java code docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Jul 16, 2023
1 parent 1a16d91 commit c28be45
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

**请确认第三方签名服务 支持的协议版本 和 登录的协议版本 匹配**

下面是配置文件示例,你可以根据实际情况调整
下面是配置文件 KFCFactory.json 示例,你可以根据实际情况调整
```json
{
"8.9.63": {
Expand Down Expand Up @@ -97,20 +97,12 @@ import net.mamoe.mirai.utils.BotConfiguration.MiraiProtocol;
import java.util.Map;

public class Example {
// 升级协议版本
public static void update() {
FixProtocolVersion.update();
}
// 同步协议版本
public static void sync() {
FixProtocolVersion.sync(BotConfiguration.MiraiProtocol.ANDROID_PAD);
}
// 获取指定协议版本
public static void fetch() {
FixProtocolVersion.fetch(BotConfiguration.MiraiProtocol.ANDROID_PAD, "latest");
FixProtocolVersion.fetch(BotConfiguration.MiraiProtocol.ANDROID_PAD, "8.9.63");
}
// 加载协议版本
// 从本地文件加载协议版本
public static void load() {
FixProtocolVersion.load(BotConfiguration.MiraiProtocol.ANDROID_PAD);
}
Expand Down

0 comments on commit c28be45

Please sign in to comment.