From 36a6eb1f28cf2284f6af3585533f056a683fcaec Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Mon, 29 May 2023 22:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix=E6=9B=B4=E6=AD=A3=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E7=BB=91=E5=AE=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model/user.js b/model/user.js index 4ee020c..216a4d7 100644 --- a/model/user.js +++ b/model/user.js @@ -713,7 +713,7 @@ export default class user { skuid = await gsCfg.getBingCookie(e.user_id); cookie = skuid?.ck; uid = skuid?.item; - if (!uid && e.user) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s + if (!uid && e.user?.mainUid) { //获取uid为空时进行后续处理获取 (临时处理方式后续会进行解耦以避免这种情况。。待咕中.)s uid = e.user?.mainUid[e.isSr ? 'sr' : 'gs'] //由于目前只支持原神功能暂时先写死 lodash.mapValues(e.user.mysUsers, function (o) { if (o.uids[e.isSr ? 'sr' : 'gs'].includes(uid)) {