checksum 自动修补

This commit is contained in:
wisdgod
2025-01-20 00:50:54 +08:00
committed by GitHub
parent 3e304f53d4
commit 18b393de73

View File

@@ -18,7 +18,7 @@ use crate::{
common::{
client::build_client,
models::{error::ChatError, userinfo::MembershipType, ErrorResponse},
utils::{format_time_ms, get_token_profile, validate_token_and_checksum},
utils::{format_time_ms, generate_checksum_with_repair, get_token_profile, validate_token_and_checksum},
},
};
use axum::{
@@ -243,7 +243,7 @@ pub async fn handle_chat(
};
// 构建请求客户端
let client = build_client(&auth_token, &checksum);
let client = build_client(&auth_token, &generate_checksum_with_repair(&checksum));
let response = client.body(hex_data).send().await;
// 处理请求结果