StandardCharImageLoginSolver
class StandardCharImageLoginSolver @JvmOverloads constructor(input: suspend () -> String, loggerSupplier: (bot: Bot) -> MiraiLogger) : LoginSolver
Content copied to clipboard
CLI 环境 LoginSolver. 将验证码图片转为字符画并通过 output 输出, input 获取用户输入.
使用字符图片展示验证码, 使用 input 获取输入, 使用 loggerSupplier 输出
See also
Constructors
StandardCharImageLoginSolver
Link copied to clipboard
fun StandardCharImageLoginSolver(input: suspend () -> String = { readLine() ?: throw NoStandardInputForCaptchaException() }, overrideLogger: MiraiLogger?)
Content copied to clipboard
StandardCharImageLoginSolver
Link copied to clipboard
fun StandardCharImageLoginSolver(input: suspend () -> String = { readLine() ?: throw NoStandardInputForCaptchaException() }, loggerSupplier: (bot: Bot) -> MiraiLogger = { it.logger })
Content copied to clipboard
Types
Functions
onSolvePicCaptcha
Link copied to clipboard
open suspend override fun onSolvePicCaptcha(bot: Bot, data: ByteArray): String?
Content copied to clipboard
处理图片验证码.
onSolveSliderCaptcha
Link copied to clipboard
open suspend override fun onSolveSliderCaptcha(bot: Bot, url: String): String
Content copied to clipboard
处理滑动验证码.
onSolveUnsafeDeviceLoginVerify
Link copied to clipboard
open suspend override fun onSolveUnsafeDeviceLoginVerify(bot: Bot, url: String): String
Content copied to clipboard
处理不安全设备验证.
Properties
isSliderCaptchaSupported
Link copied to clipboard
为 true 表示支持滑动验证码, 遇到滑动验证码时 mirai 会请求 onSolveSliderCaptcha. 否则会跳过滑动验证码并告诉服务器此客户端不支持, 有可能导致登录失败