🐞 fix: 修复 wb 无法解析问题

This commit is contained in:
zhiyu1998 2024-09-22 16:47:28 +08:00
parent 282d5be643
commit 2a6332ccbe

View File

@ -1318,12 +1318,13 @@ export class tools extends plugin {
return;
}
const id = weiboId.split("/")[1] || weiboId;
const that = this;
axios.get(WEIBO_SINGLE_INFO.replace("{}", id), {
headers: {
"User-Agent": COMMON_USER_AGENT,
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"cookie": "_T_WM=40835919903; WEIBOCN_FROM=1110006030; MLOGIN=0; XSRF-TOKEN=4399c8",
"Referer": `https://m.weibo.cn/detail/${ id }`,
}
})
.then(async resp => {