fix: 2025-12-29 update

This commit is contained in:
2025-12-29 15:36:03 +08:00
parent 8d2c3ab82c
commit beb8fd3e5b
2 changed files with 7 additions and 0 deletions

View File

@@ -65,6 +65,7 @@ impl UserLoginApiResp {
100 => Some(LoginError::AlreadyLogged),
102 => Some(LoginError::QRCodeExpired),
103 => Some(LoginError::AccountUnregistered),
106 => Some(LoginError::KeychipMismatch),
error => Some(LoginError::Unknown { error }),
}
}
@@ -78,6 +79,8 @@ pub enum LoginError {
AlreadyLogged,
#[snafu(display("userId does not exist"))]
AccountUnregistered,
#[snafu(display("KeyChip-ID mismatch"))]
KeychipMismatch,
#[snafu(display("Unknown error: {error}"))]
Unknown { error: i32 },