From 59f7531184abc4be9f67dd19a0d6898ac2da4a3d Mon Sep 17 00:00:00 2001 From: Ctrlcvs <1509167646@qq.com> Date: Fri, 14 Oct 2022 21:43:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=BB=91=E5=AE=9Astoken?= =?UTF-8?q?=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/user.js | 2 +- model/user.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/user.js b/apps/user.js index bb48f1a..174290a 100644 --- a/apps/user.js +++ b/apps/user.js @@ -99,7 +99,7 @@ export async function gclog(e) { e.region = getServer(e.uid) let authkeyrow = await user.getData("authKey"); if (!authkeyrow?.data) { - e.reply("authkey获取失败:" + authkeyrow.message) + e.reply("authkey获取失败:" + authkeyrow.message?.includes("登录失效")?"请重新绑定stoken":authkeyrow.message) return true; } let authkey = authkeyrow.data["authkey"] diff --git a/model/user.js b/model/user.js index fedcd55..c87732c 100644 --- a/model/user.js +++ b/model/user.js @@ -648,8 +648,8 @@ export default class user { if (res?.data) { datalist[e.uid] = { stuid: map?.get("account_id"), - stoken: data.data.list[0].token, - ltoken: data.data.list[1].token, + stoken: res.data.list[0].token, + ltoken: res.data.list[1].token, uid: e.uid, userId: e.user_id, is_sign: true