From dde5ab45616ae904fd4326c39334d50ad2d36523 Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Mon, 5 Sep 2022 13:47:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=AD=A3ck=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/user.js b/apps/user.js index 1120d9e..b1c5ce9 100644 --- a/apps/user.js +++ b/apps/user.js @@ -56,8 +56,8 @@ export async function userInfo(e, { } let ck = ""; if (e.cookie) { - ck = user.getCookieMap(e.cookie); - ck = ck.get("ltuid") + ck =await utils.getCookieMap(e.cookie); + ck = ck?.get("ltuid") } return await Common.render(`user/userInfo`, { uid: e.user_id,