feat: prepare for 1.53 preview/login

This commit is contained in:
2026-01-09 01:33:18 +08:00
parent 15c6623ed8
commit e7b0bcbfed
5 changed files with 23 additions and 7 deletions

View File

@@ -15,9 +15,10 @@ use spdlog::info;
pub async fn login_action<R>(
client: &AsyncClient,
user_id: u32,
token: Option<String>,
action: impl AsyncFnOnce(UserLoginApiResp) -> R,
) -> Result<R, ApiError> {
let login = UserLoginApi::new(user_id, true);
let login = UserLoginApi::new(user_id, true, token);
let date_time = login.date_time;
let login_resp: UserLoginApiResp =