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; }