fix: 修复搜索up稿件时偶发的412错误问题

This commit is contained in:
lanyeeee
2026-08-10 05:08:15 +08:00
parent ace6b8efa0
commit 1c849409cf
+2 -1
View File
@@ -351,7 +351,8 @@ impl BiliClient {
.read()
.get("https://api.bilibili.com/x/space/wbi/arc/search")
.query(&params)
.header("cookie", self.get_cookie());
// 不带DedeUserID会随机触发412错误
.header("cookie", format!("DedeUserID=1; {}", self.get_cookie()));
let http_resp = request.send().await?;
// 检查http响应状态码
let status = http_resp.status();