From fa9d0f10ac4e18f65dadc2f584e3dd353fb9fcf4 Mon Sep 17 00:00:00 2001 From: ctrlcvs <1509167646@qq.com> Date: Thu, 1 Jun 2023 23:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E8=AF=AD=E6=B3=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E9=81=BF=E5=85=8D=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/model/user.js b/model/user.js index e0d10d6..f52e753 100644 --- a/model/user.js +++ b/model/user.js @@ -736,9 +736,9 @@ export default class user { skuid = await gsCfg.getBingCookie(e.user_id); cookie = skuid?.ck; uid = skuid?.item; - if (!uid && e.user) { - uid = e.user.getUid('gs') - cookie = e.user.mysUser.ck + if (!uid && e?.user?.getUid) { + uid = e?.user?.getUid('gs') + cookie = e?.user?.mysUser?.ck } // if (!uid && e.user) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s // }