Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
9469afa6
Commit
9469afa6
authored
Dec 08, 2019
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make tips clear
parent
39204730
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt
...n/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt
+2
-2
No files found.
mirai-core/src/jvmMain/kotlin/net/mamoe/mirai/utils/DefaultCaptchaSolverJvm.kt
View file @
9469afa6
...
@@ -32,7 +32,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = {
...
@@ -32,7 +32,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = {
MiraiLogger
.
info
(
"需要验证码登录, 验证码为 4 字母"
)
MiraiLogger
.
info
(
"需要验证码登录, 验证码为 4 字母"
)
try
{
try
{
tempFile
.
writeChannel
().
use
{
writeFully
(
it
)
}
tempFile
.
writeChannel
().
use
{
writeFully
(
it
)
}
MiraiLogger
.
info
(
"
若看不清字符图片, 请查看
${tempFile.absolutePath}"
)
MiraiLogger
.
info
(
"
将会显示字符图片. 若看不清字符图片, 请查看文件
${tempFile.absolutePath}"
)
}
catch
(
e
:
Exception
)
{
}
catch
(
e
:
Exception
)
{
MiraiLogger
.
info
(
"无法写出验证码文件(${e.message}), 请尝试查看以上字符图片"
)
MiraiLogger
.
info
(
"无法写出验证码文件(${e.message}), 请尝试查看以上字符图片"
)
}
}
...
@@ -46,7 +46,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = {
...
@@ -46,7 +46,7 @@ actual var DefaultCaptchaSolver: CaptchaSolver = {
}
}
}
}
}
}
MiraiLogger
.
info
(
"若要更换验证码, 请直接回车"
)
MiraiLogger
.
info
(
"
请输入 4 位字母验证码.
若要更换验证码, 请直接回车"
)
readLine
()
?.
takeUnless
{
it
.
isEmpty
()
||
it
.
length
!=
4
}
readLine
()
?.
takeUnless
{
it
.
isEmpty
()
||
it
.
length
!=
4
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment