todo: fix logout issue

This commit is contained in:
2026-01-21 03:30:36 +08:00
parent 971fd5f408
commit 90d092729a
3 changed files with 9 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ pub struct GetResponse {
impl GetUserId { impl GetUserId {
pub fn new(qr_code: impl Into<String>) -> Self { pub fn new(qr_code: impl Into<String>) -> Self {
let chip_id = "A63E-01E54389854".to_string(); let chip_id = "A63E-01C28055905".to_string();
let timestamp = Utc::now() let timestamp = Utc::now()
.with_timezone(&FixedOffset::east_opt(8 * 60 * 60).unwrap()) .with_timezone(&FixedOffset::east_opt(8 * 60 * 60).unwrap())

View File

@@ -49,18 +49,19 @@ impl UserLoginApi {
info!("login unix timestamp: {date_time}"); info!("login unix timestamp: {date_time}");
// 爱玩星球焦作解放 // 插电师北京王府井银泰
UserLoginApi { UserLoginApi {
user_id, user_id,
date_time, date_time,
region_id: 13,
acsess_code: "".to_owned(), acsess_code: "".to_owned(),
place_id: 3223.to_string(),
generic_flag: 0, generic_flag: 0,
token, token,
is_continue, is_continue,
client_id: "A63E01E6170".into(),
region_id: 1,
place_id: 1403.to_string(),
client_id: "A63E01C2805".into(),
} }
} }
} }
@@ -69,10 +70,10 @@ impl UserLoginApiResp {
pub fn error(&self) -> Option<LoginError> { pub fn error(&self) -> Option<LoginError> {
match self.return_code { match self.return_code {
1 => None, 1 => None,
100 => Some(LoginError::AlreadyLogged), 100 | 110 => Some(LoginError::AlreadyLogged),
102 => Some(LoginError::QRCodeExpired), 102 => Some(LoginError::QRCodeExpired),
103 => Some(LoginError::AccountUnregistered), 103 => Some(LoginError::AccountUnregistered),
106 | 110 => Some(LoginError::KeychipMismatch), 106 => Some(LoginError::KeychipMismatch),
error => Some(LoginError::Unknown { error }), error => Some(LoginError::Unknown { error }),
} }
} }

View File

@@ -37,7 +37,7 @@ impl Default for UserLogoutApi {
date_time, date_time,
region_id: 22, region_id: 22,
place_id: 3490, place_id: 3490,
client_id: "A63E01E9564".into(), client_id: "A63E01C2805".into(),
type_: 1, type_: 1,
access_code: "", access_code: "",
} }