This commit is contained in:
fengchuanhn@gmail.com
2026-05-17 23:29:00 +08:00
parent c70995fbc9
commit 231e4167d3
6 changed files with 29 additions and 5 deletions

View File

@@ -65,13 +65,18 @@ pub async fn request_json(
let res = req.send().await.map_err(|e| {
if e.is_connect() {
println!("无法连接服务器,请确认后端已启动");
"无法连接服务器,请确认后端已启动".to_string()
} else {
println!("e: {}", e);
e.to_string()
}
})?;
let status = res.status().as_u16();
println!("status: {}", status);
let encrypted = res
.headers()
.get(ENCRYPTED_HEADER)