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 // }