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

@@ -3,3 +3,7 @@
- SBGA 舞萌DX API 文档参考 - SBGA 舞萌DX API 文档参考
- “裸” cli 工具,没多少人性化功能 - “裸” cli 工具,没多少人性化功能
- 暂时不完整开放,留在私仓 - 暂时不完整开放,留在私仓
## 2025-12-29 维护
从此次维护开始,需要先 `qr-login` 登录再进行login。

View File

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