From 618a1e1006a5a8874a02ad9d7514780627d0881a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E5=88=80=E9=B1=BC?= <9903082+qdyovo@user.noreply.gitee.com> Date: Wed, 16 Oct 2024 08:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=9C=A8=E6=96=B0=E7=89=88API=E4=B8=ADCK=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E6=9C=80=E9=AB=98=E9=9F=B3=E8=B4=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 2392572..b34a57b 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1508,9 +1508,10 @@ async neteaseStatus(e, reck) { const match = res.data.cookie.match(regex); if (match) { try { - await config.updateField("tools", "neteaseCookie", match[0]); + let ck = match[0] + '; os=pc' + await config.updateField("tools", "neteaseCookie", ck); // logger.info('ck------', match[0]); - this.neteaseStatus(e, match[0]) + this.neteaseStatus(e, ck) } catch (error) { logger.error('更新ck时出错:', error); e.reply('更新ck时出错,请稍后重试');