Skip to content

Commit 14e9775

Browse files
committed
since 2.13
1 parent 95dd66a commit 14e9775

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

mirai-core-api/src/androidMain/kotlin/utils/LoginSolver.android.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public actual abstract class LoginSolver public actual constructor() {
7575
*
7676
* @return 验证结果, 可通过解决 [DeviceVerificationRequests] 获得.
7777
* @throws LoginFailedException
78-
* @since 2.14
78+
* @since 2.13
7979
*/
8080
public actual open suspend fun onSolveDeviceVerification(
8181
bot: Bot,

mirai-core-api/src/commonMain/kotlin/network/LoginFailedException.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class NoStandardInputForCaptchaException @MiraiInternalApi constructor(
6262

6363
/**
6464
* 需要强制短信验证, 且当前 [LoginSolver] 不支持时抛出.
65-
* @since 2.14
65+
* @since 2.13
6666
*/
6767
public class UnsupportedSmsLoginException(message: String?) : LoginFailedException(true, message)
6868

mirai-core-api/src/commonMain/kotlin/utils/LoginSolver.kt

+5-5
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public expect abstract class LoginSolver() {
7575
*
7676
* @since 验证结果, 可通过解决 [DeviceVerificationRequests] 获得.
7777
* @throws LoginFailedException
78-
* @since 2.14
78+
* @since 2.13
7979
*/
8080
public open suspend fun onSolveDeviceVerification(
8181
bot: Bot,
@@ -130,7 +130,7 @@ public expect abstract class LoginSolver() {
130130
* 属性 [sms] 为短信验证码验证方式, [fallback] 为其他验证方式.
131131
* 两个属性至少有一个不为 `null`, 在不为 `null` 时表示支持该验证方式. 可任意选用偏好的验证方式.
132132
*
133-
* @since 2.14
133+
* @since 2.13
134134
*/
135135
@NotStableForInheritance
136136
public interface DeviceVerificationRequests {
@@ -153,7 +153,7 @@ public interface DeviceVerificationRequests {
153153
/**
154154
* 服务器要求短信验证时提供的账号绑定的手机信息. 使用 [requestSms] 来请求发送验证码
155155
*
156-
* @since 2.14
156+
* @since 2.13
157157
* @see LoginSolver.onSolveDeviceVerification
158158
*/
159159
@NotStableForInheritance
@@ -187,7 +187,7 @@ public interface SmsRequest {
187187
/**
188188
* 其他验证方式.
189189
*
190-
* @since 2.14
190+
* @since 2.13
191191
* @see LoginSolver.onSolveDeviceVerification
192192
*/
193193
@NotStableForInheritance
@@ -206,7 +206,7 @@ public interface FallbackRequest {
206206
/**
207207
* 设备验证的验证结果. 请不要自行实现此接口, 而是通过解决 [DeviceVerificationRequests] 中的其中一种验证获得.
208208
*
209-
* @since 2.14
209+
* @since 2.13
210210
* @see LoginSolver.onSolveDeviceVerification
211211
*/
212212
@NotStableForInheritance

mirai-core-api/src/jvmMain/kotlin/utils/LoginSolver.jvm.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public actual abstract class LoginSolver public actual constructor() {
9191
*
9292
* @since 验证结果, 可通过解决 [DeviceVerificationRequests] 获得.
9393
* @throws LoginFailedException
94-
* @since 2.14
94+
* @since 2.13
9595
*/
9696
public actual open suspend fun onSolveDeviceVerification(
9797
bot: Bot,

mirai-core-api/src/nativeMain/kotlin/utils/LoginSolver.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public actual abstract class LoginSolver actual constructor() {
7373
*
7474
* @since 验证结果, 可通过解决 [DeviceVerificationRequests] 获得.
7575
* @throws LoginFailedException
76-
* @since 2.14
76+
* @since 2.13
7777
*/
7878
public actual open suspend fun onSolveDeviceVerification(
7979
bot: Bot,

0 commit comments

Comments
 (0)