From 1cfc99e2fd27cb43795159f5763da8a95e00968e Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Sun, 26 Feb 2023 22:25:56 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3`#=E5=88=B7?= =?UTF-8?q?=E6=96=B0ck`=E5=88=A4=E6=96=AD=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/user.js b/apps/user.js index 1ad39a5..db6d769 100644 --- a/apps/user.js +++ b/apps/user.js @@ -333,10 +333,14 @@ export async function updCookie(e) { for (let item of Object.keys(stoken)) { e.region = getServer(stoken[item].uid) e.uid = stoken[item].uid + if(!e?.uid){ + Bot.logger.mark(`[刷新ck][stoken读取]qq:${e?.user_id};uid:${e?.uid}`) + continue; //奇怪的东西 + } let cookies = `uid=${stoken[item].stuid}&stoken=${stoken[item].stoken}` if (stoken[item]?.mid) cookies += `&mid=${stoken[item]?.mid}` let data = { cookies: cookies } - if(e.uid[0]>5) data.method='post' + if(e?.uid[0]>5) data.method='post' let res = await user.getData("bbsGetCookie",data, false) if (!res?.data) { e.reply(`uid:${stoken[item].uid},请求异常:${res.message}`)