chore: detect keychip mismatch issue
This commit is contained in:
@@ -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 }),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user