mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 09:50:16 +08:00
Make tips clear
This commit is contained in:
parent
39204730eb
commit
9469afa680
@ -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 }
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user