From 4308c59da241dad751169a3b1d7101ff41b52e3f Mon Sep 17 00:00:00 2001 From: Him188 Date: Fri, 26 Mar 2021 19:00:42 +0800 Subject: [PATCH] Use `device.json` by default for AutoLoginConfig (#312) --- .../src/internal/data/builtins/AutoLoginConfig.kt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/mirai-console/src/internal/data/builtins/AutoLoginConfig.kt b/backend/mirai-console/src/internal/data/builtins/AutoLoginConfig.kt index 1648f3d32..1f23d793b 100644 --- a/backend/mirai-console/src/internal/data/builtins/AutoLoginConfig.kt +++ b/backend/mirai-console/src/internal/data/builtins/AutoLoginConfig.kt @@ -1,10 +1,10 @@ /* - * Copyright 2019-2020 Mamoe Technologies and contributors. + * Copyright 2019-2021 Mamoe Technologies and contributors. * - * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. - * Use of this source code is governed by the GNU AFFERO GENERAL PUBLIC LICENSE version 3 license that can be found through the following link. + * 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证. + * Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link. * - * https://github.com/mamoe/mirai/blob/master/LICENSE + * https://github.com/mamoe/mirai/blob/master/LICENSE */ @file:Suppress("EXPOSED_SUPER_CLASS") @@ -35,7 +35,7 @@ public object AutoLoginConfig : AutoSavePluginConfig("AutoLogin") { """ 账号配置. 可用配置列表 (注意大小写): "protocol": "ANDROID_PHONE" / "ANDROID_PAD" / "ANDROID_WATCH" - "device": "deviceInfo.json" + "device": "device.json" """ ) val configuration: Map = mapOf(), @@ -87,7 +87,7 @@ public object AutoLoginConfig : AutoSavePluginConfig("AutoLogin") { password = Account.Password(Account.PasswordKind.PLAIN, "pwd"), configuration = mapOf( Account.ConfigurationKey.protocol to "ANDROID_PHONE", - Account.ConfigurationKey.device to "deviceInfo.json" + Account.ConfigurationKey.device to "device.json" ) ) )