From 0819e3de5f05a8020aa0d1e117c5d0bd47b939aa Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Wed, 17 Aug 2022 08:00:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=9C=AA=E7=BB=91=E5=AE=9Aco?= =?UTF-8?q?okie=E6=97=B6=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user.js | 3 ++- model/user.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/user.js b/apps/user.js index 96bd9fe..56a5fd7 100644 --- a/apps/user.js +++ b/apps/user.js @@ -36,10 +36,11 @@ export async function userInfo(e,{render}){ let ck=""; if(e.cookie){ ck= user.getCookieMap(e.cookie); + ck=ck.get("ltuid") } return await Common.render(`user/userInfo`, { uid: e.user_id, - ltuid:ck.get("ltuid")||e.user_id, + ltuid:ck||e.user_id, save_id:e.user_id, day, sumData diff --git a/model/user.js b/model/user.js index 81c6cae..d632068 100644 --- a/model/user.js +++ b/model/user.js @@ -113,7 +113,7 @@ export default class user { let cookiesDoc = await this.getcookiesDoc(); let miHoYoApi = new MihoYoApi(this.e); if (!cookie) { - e.reply("cookie失效请重新绑定~【教程】\n" + cookiesDoc) + e.reply("请先#绑定cookie\n发送【体力帮助】查看配置教程") return false; }