2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00

fix:修正ck查询报错

This commit is contained in:
Ctrlcvs 2022-09-05 13:47:48 +08:00
parent f951174426
commit dde5ab4561

View File

@ -56,8 +56,8 @@ export async function userInfo(e, {
} }
let ck = ""; let ck = "";
if (e.cookie) { if (e.cookie) {
ck = user.getCookieMap(e.cookie); ck =await utils.getCookieMap(e.cookie);
ck = ck.get("ltuid") ck = ck?.get("ltuid")
} }
return await Common.render(`user/userInfo`, { return await Common.render(`user/userInfo`, {
uid: e.user_id, uid: e.user_id,