This commit is contained in:
Him188 2020-01-30 20:31:17 +08:00
parent 6e22272adf
commit f2c682dba5
2 changed files with 2 additions and 7 deletions

View File

@ -15,12 +15,7 @@ actual var defaultLoginSolver: LoginSolver = object : LoginSolver() {
error("should be implemented manually by you")
}
override suspend fun onGetPhoneNumber(): String {
override suspend fun onSolveUnsafeDeviceLoginVerify(bot: Bot, url: String): String? {
error("should be implemented manually by you")
}
override suspend fun onGetSMSVerifyCode(): String {
error("should be implemented manually by you")
}
}

View File

@ -53,7 +53,7 @@ class DefaultLoginSolver : LoginSolver() {
}
bot.logger.info("请输入 4 位字母验证码. 若要更换验证码, 请直接回车")
return readLine()?.takeUnless { it.isEmpty() || it.length != 4 }.also {
bot.logger.info("正在提交[" + it +"]中...")
bot.logger.info("正在提交[$it]中...")
}
}
}