|
@@ -9,49 +9,44 @@
|
|
|
|
|
|
### 新特性
|
|
### 新特性
|
|
|
|
|
|
-- 扫码登录 (#2502 with @StageGuard, #1281)
|
|
|
|
|
|
+- 支持扫码登录 (#2502 with @StageGuard, #1281)
|
|
|
|
+
|
|
|
|
+新的登录方法通过 `BotAuthorization` & `BotFactory.newBot(id: Long, authorization: BotAuthorization)` 登录
|
|
|
|
+
|
|
|
|
+关于详细的使用方法请参考 `BotAuthorization` 的注释
|
|
|
|
+
|
|
|
|
+扫码登录的实现不一定稳定 (因为涉及修改了大量内部登录和维护在线逻辑), 文档也还在正在准备中.
|
|
|
|
+**在 2.15.0-RC 可能会修改扫码登录的 API**.
|
|
|
|
+
|
|
|
|
+> mirai-console **尚未支持
|
|
|
|
+**在命令中指定扫码登录, 但是提供了 `MiraiConsole.addBot(id: Long, authorization: BotAuthorization)` 用于扫码登录
|
|
|
|
|
|
### 优化和修复
|
|
### 优化和修复
|
|
|
|
|
|
- 更新 Kotlin 到 1.8.10, kotlinx-serialization 到 1.5.0 (#2578)
|
|
- 更新 Kotlin 到 1.8.10, kotlinx-serialization 到 1.5.0 (#2578)
|
|
- 修复特殊情况可能无法加载 services 的问题 (#2268, #2511 by @Nambers, #2428 by @cssxsh)
|
|
- 修复特殊情况可能无法加载 services 的问题 (#2268, #2511 by @Nambers, #2428 by @cssxsh)
|
|
|
|
+ > 例如在 Minecraft 插件中
|
|
- 增加 TxCaptchaHelper 可用性无法保证的警告 (#2564 by @MrXiaoM)
|
|
- 增加 TxCaptchaHelper 可用性无法保证的警告 (#2564 by @MrXiaoM)
|
|
-- 修正 dumpTlvMap 返回值不正确 (#2557 by @MrXiaoM)
|
|
|
|
-- 修正多态序列化 (#2414)
|
|
|
|
-- 修正群公告发送失败 no login (#2069, #2512 by @cssxsh)
|
|
|
|
-- 修正使用 Announcements.get(fid) 出现 kotlinx.serialization.MissingFieldException: Field 'msg' (#2509, #2512 by @cssxsh)
|
|
|
|
|
|
+- 修正消息多态序列化, 输出的 JSON 不再包含多余的 "type" 字段 (#2414)
|
|
|
|
+- 修正群公告发送失败报错 `no login` (#2069, #2512 by @cssxsh)
|
|
|
|
+- 修正使用 `Announcements.get(fid)` 出现 `kotlinx.serialization.MissingFieldException: Field 'msg'` (#2509, #2512 by @cssxsh)
|
|
- 修正短暂断网时不能成功重连 (#2488, #2504, #2505 by @sandtechnology)
|
|
- 修正短暂断网时不能成功重连 (#2488, #2504, #2505 by @sandtechnology)
|
|
-- OfflinMessageSource 回复错误 (#2501)
|
|
|
|
|
|
+- 修复 `OfflineMessageSource` 回复时, 引用回复的 At 变空白的问题 (#2501)
|
|
- 在无法连接服务器时在报错信息中携带尝试连接的服务器 (#2576 by @cssxsh)
|
|
- 在无法连接服务器时在报错信息中携带尝试连接的服务器 (#2576 by @cssxsh)
|
|
|
|
+- 修正 dumpTlvMap 返回值不正确的问题 (内部) (#2557 by @MrXiaoM)
|
|
- 修正文档细节 (#2547 by @7aGiven)
|
|
- 修正文档细节 (#2547 by @7aGiven)
|
|
|
|
|
|
## mirai-core-mock
|
|
## mirai-core-mock
|
|
-
|
|
|
|
- 在 upload 后的 MockImage 中提供 size 属性 (#2515)
|
|
- 在 upload 后的 MockImage 中提供 size 属性 (#2515)
|
|
|
|
|
|
## mirai-console
|
|
## mirai-console
|
|
|
|
|
|
### 新特性
|
|
### 新特性
|
|
-
|
|
|
|
- JvmPlugin 以 `getResource` 方法获取全局资源文件 (#2536 by @ArgonarioD)
|
|
- JvmPlugin 以 `getResource` 方法获取全局资源文件 (#2536 by @ArgonarioD)
|
|
- 添加新事件 `StartupEvent`, `AutoLoginEvent` (#2446 by @cssxsh)
|
|
- 添加新事件 `StartupEvent`, `AutoLoginEvent` (#2446 by @cssxsh)
|
|
|
|
+ > 分别在 Console 启动完成后, 和自动登录后触发
|
|
|
|
|
|
### 优化和修复
|
|
### 优化和修复
|
|
-
|
|
|
|
- 文档修正(#2503 by @7aGiven, #2506 by @7aGiven, #2457 by @char-46, #2577 by @cssxsh, #2491 by @EnchStudio)
|
|
- 文档修正(#2503 by @7aGiven, #2506 by @7aGiven, #2457 by @char-46, #2577 by @cssxsh, #2491 by @EnchStudio)
|
|
- 修复在Android系统运行时,被杀后台时抛出的 InterruptedException 导致崩溃 (#2474 by @zhaodice)
|
|
- 修复在Android系统运行时,被杀后台时抛出的 InterruptedException 导致崩溃 (#2474 by @zhaodice)
|
|
- 修复使用 Console 扩展时,对于扩展的函数返回非 null 值报错的情况 (#2528 by @NoMathExpectation)
|
|
- 修复使用 Console 扩展时,对于扩展的函数返回非 null 值报错的情况 (#2528 by @NoMathExpectation)
|
|
-
|
|
|
|
-----------------------
|
|
|
|
-
|
|
|
|
-## 扫码登录 (#2502)
|
|
|
|
-
|
|
|
|
-新的登录方法通过 `BotAuthorization` & `BotFactory.newBot(id: Long, authorization: BotAuthorization)` 登录
|
|
|
|
-
|
|
|
|
-关于详细的使用方法请参考 `BotAuthorization` 的注释
|
|
|
|
-
|
|
|
|
-扫码登录的实现不一定稳定 (因为涉及修改了大量内部登录和维护在线逻辑), 文档也还在正在准备中.
|
|
|
|
-**在 2.15.0-RC 可能会修改扫码登录的 API**.
|
|
|
|
-
|
|
|
|
-> mirai-console **尚未支持
|
|
|
|
-**在命令中指定扫码登录, 但是提供了 `MiraiConsole.addBot(id: Long, authorization: BotAuthorization)` 用于扫码登录
|
|
|