From 2a6332ccbe504a7a05b2e58f2779559b7ae14210 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sun, 22 Sep 2024 16:47:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D=20wb?= =?UTF-8?q?=20=E6=97=A0=E6=B3=95=E8=A7=A3=E6=9E=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index a6c029d..5f217b4 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -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 => {