From 9469afa680b81467d5ef13bece015c80d2543384 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sun, 8 Dec 2019 21:05:42 +0800 Subject: [PATCH] Make tips clear --- .../kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt index 37400458b..d5e88bbfd 100644 --- a/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt +++ b/mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt @@ -32,7 +32,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = { MiraiLogger.info("需要验证码登录, 验证码为 4 字母") try { tempFile.writeChannel().use { writeFully(it) } - MiraiLogger.info("若看不清字符图片, 请查看 ${tempFile.absolutePath}") + MiraiLogger.info("将会显示字符图片. 若看不清字符图片, 请查看文件 ${tempFile.absolutePath}") } catch (e: Exception) { MiraiLogger.info("无法写出验证码文件(${e.message}), 请尝试查看以上字符图片") } @@ -46,7 +46,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = { } } } - MiraiLogger.info("若要更换验证码, 请直接回车") + MiraiLogger.info("请输入 4 位字母验证码. 若要更换验证码, 请直接回车") readLine()?.takeUnless { it.isEmpty() || it.length != 4 } } }