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

修正绑定stoken时报错

This commit is contained in:
Ctrlcvs 2022-10-14 21:43:10 +08:00
parent 72e18867fc
commit 59f7531184
2 changed files with 3 additions and 3 deletions

View File

@ -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"]

View File

@ -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