diff --git a/apps/sign.js b/apps/sign.js index 859ddb8..bcbdf6f 100644 --- a/apps/sign.js +++ b/apps/sign.js @@ -313,8 +313,8 @@ async function getCookie(e) { let skuid, cookie, uid if (isV3) { skuid = await gsCfg.getBingCookie(e.user_id); - cookie = skuid.ck; - uid = skuid.item; + cookie = skuid?.ck; + uid = skuid?.item; } else { if (NoteCookie[e.user_id]) { cookie = NoteCookie[e.user_id].cookie; diff --git a/model/user.js b/model/user.js index 1350a50..69de5b8 100644 --- a/model/user.js +++ b/model/user.js @@ -124,8 +124,8 @@ export default class user { let skuid, cookie, uid if (isV3) { skuid = await gsCfg.getBingCookie(e.user_id); - cookie = skuid.ck; - uid = skuid.item; + cookie = skuid?.ck; + uid = skuid?.item; } else { if (NoteCookie[e.user_id]) { cookie = NoteCookie[e.user_id].cookie;