fix: 修复多处代码质量问题-移除unwrap/println/dead-code/重复代码/错误吞咽

This commit is contained in:
2026-05-11 13:38:41 +08:00
parent 0cba52f545
commit 061c2bbb5a
7 changed files with 74 additions and 117 deletions

View File

@@ -77,7 +77,7 @@ pub fn generate_refresh_token(user_id: i32, secret: &str) -> Result<String, Stri
}
// 解析 refresh_token返回 (user_id, expires_at)
pub fn verify_refresh_token(token: &str, secret: &str) -> Result<(i32, i64), String> {
pub fn verify_refresh_token(token: &str, _secret: &str) -> Result<(i32, i64), String> {
let decoded = BASE64.decode(token)
.map_err(|e| format!("Refresh token 格式错误: {}", e))?;