diff --git a/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/platformAndroid.kt b/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/platformAndroid.kt index d1e541de5..4e4de1eff 100644 --- a/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/platformAndroid.kt +++ b/mirai-core/src/androidMain/kotlin/net/mamoe/mirai/utils/platformAndroid.kt @@ -74,8 +74,7 @@ actual object MiraiPlatformUtils { * Ktor HttpClient. 不同平台使用不同引擎. */ @OptIn(KtorExperimentalAPI::class) - actual val Http: HttpClient - get() = HttpClient(CIO) + actual val Http: HttpClient = HttpClient(CIO) /** * Localhost 解析 diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt index fa3c6a95f..2ebeac361 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/lowLevelApi.kt @@ -43,7 +43,7 @@ interface LowLevelBotAPIAccessor { @MiraiExperimentalAPI @LowLevelAPI @MiraiInternalAPI - abstract val account: BotAccount + val account: BotAccount /** * 构造一个 [_lowLevelNewQQ] 对象. 它持有对 [Bot] 的弱引用([WeakRef]). diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/PlatformUtilsJvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/PlatformUtilsJvm.kt index fe5380e2d..e142b46d1 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/PlatformUtilsJvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/PlatformUtilsJvm.kt @@ -75,8 +75,7 @@ actual object MiraiPlatformUtils { * Ktor HttpClient. 不同平台使用不同引擎. */ @OptIn(KtorExperimentalAPI::class) - actual val Http: HttpClient - get() = HttpClient(CIO) + actual val Http: HttpClient = HttpClient(CIO) /** * Localhost 解析