chore: switch to sdgb 1.53 fully

This commit is contained in:
2026-01-15 04:42:46 +08:00
parent 69ab1ec4d6
commit b5c6de9c17
9 changed files with 18 additions and 165 deletions

View File

@@ -14,7 +14,7 @@ use sdgb_api::{
all_net::{GetResponse, QRCode},
auth_lite::{SDGB, SDHJ, delivery_raw},
title::{
MaiVersionExt, Sdgb1_50, Sdgb1_53,
MaiVersionExt, Sdgb1_53,
helper::get_user_all_music,
methods::APIMethod,
model::{
@@ -118,7 +118,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
}
}
Commands::Rating { user_id, format } => {
let rating: GetUserRatingApiResp = Sdgb1_50::request(
let rating: GetUserRatingApiResp = Sdgb1_53::request(
&client,
APIMethod::GetUserRatingApi,
user_id,
@@ -147,7 +147,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
}
}
Commands::Logout { user_id, timestamp } => {
let logout: UserLogoutApiResp = Sdgb1_50::request(
let logout: UserLogoutApiResp = Sdgb1_53::request(
&client,
APIMethod::UserLogoutApi,
user_id,
@@ -166,7 +166,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
}
}
Commands::Preview { user_id, token } => {
let preview: GetUserPreviewApiResp = Sdgb1_50::request(
let preview: GetUserPreviewApiResp = Sdgb1_53::request(
&client,
APIMethod::GetUserPreviewApi,
user_id,
@@ -424,7 +424,7 @@ async fn main() -> Result<(), Box<dyn snafu::Error>> {
skip_login,
token,
} => {
let action = async |_| match Sdgb1_50::request::<_, GetUserDataApiResp>(
let action = async |_| match Sdgb1_53::request::<_, GetUserDataApiResp>(
&client,
APIMethod::GetUserDataApi,
user_id,