chore: detect keychip mismatch issue

This commit is contained in:
2026-01-21 03:18:29 +08:00
parent 373ad4e747
commit 971fd5f408

View File

@@ -30,6 +30,7 @@ pub struct UserLoginApiResp {
/// - `1`: success
/// - `100`: logged
/// - `102`: QRCode expired
/// - `110`: KeyChip mismatch
pub return_code: i32,
/// format: yyyy-mm-dd HH:MM:SS
pub last_login_date: Option<String>,
@@ -71,7 +72,7 @@ impl UserLoginApiResp {
100 => Some(LoginError::AlreadyLogged),
102 => Some(LoginError::QRCodeExpired),
103 => Some(LoginError::AccountUnregistered),
106 => Some(LoginError::KeychipMismatch),
106 | 110 => Some(LoginError::KeychipMismatch),
error => Some(LoginError::Unknown { error }),
}
}