LoginSolver

abstract class LoginSolver

验证码, 设备锁解决器

See also

Constructors

Link copied to clipboard
fun LoginSolver()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open suspend fun onSolveDeviceVerification(bot: Bot, requests: DeviceVerificationRequests): DeviceVerificationResult

处理设备验证. 通常需要覆盖此函数. 此函数为 open 是为了兼容旧代码 (2.13 以前).

Link copied to clipboard
abstract suspend fun onSolvePicCaptcha(bot: Bot, data: ByteArray): String?

处理图片验证码, 返回图片验证码内容.

Link copied to clipboard
abstract suspend fun onSolveSliderCaptcha(bot: Bot, url: String): String?

处理滑动验证码.

Link copied to clipboard
open suspend fun onSolveUnsafeDeviceLoginVerify(bot: Bot, url: String): String?

处理不安全设备验证. 此函数已弃用, 请实现 onSolveDeviceVerification.

Properties

Link copied to clipboard
open val isSliderCaptchaSupported: Boolean

true 表示支持滑动验证码, 遇到滑动验证码时 mirai 会请求 onSolveSliderCaptcha. 否则会跳过滑动验证码并告诉服务器此客户端不支持, 有可能导致登录失败

Inheritors

Link copied to clipboard
Link copied to clipboard