mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
修正绑定stoken时报错
This commit is contained in:
parent
72e18867fc
commit
59f7531184
@ -99,7 +99,7 @@ export async function gclog(e) {
|
|||||||
e.region = getServer(e.uid)
|
e.region = getServer(e.uid)
|
||||||
let authkeyrow = await user.getData("authKey");
|
let authkeyrow = await user.getData("authKey");
|
||||||
if (!authkeyrow?.data) {
|
if (!authkeyrow?.data) {
|
||||||
e.reply("authkey获取失败:" + authkeyrow.message)
|
e.reply("authkey获取失败:" + authkeyrow.message?.includes("登录失效")?"请重新绑定stoken":authkeyrow.message)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
let authkey = authkeyrow.data["authkey"]
|
let authkey = authkeyrow.data["authkey"]
|
||||||
|
@ -648,8 +648,8 @@ export default class user {
|
|||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
datalist[e.uid] = {
|
datalist[e.uid] = {
|
||||||
stuid: map?.get("account_id"),
|
stuid: map?.get("account_id"),
|
||||||
stoken: data.data.list[0].token,
|
stoken: res.data.list[0].token,
|
||||||
ltoken: data.data.list[1].token,
|
ltoken: res.data.list[1].token,
|
||||||
uid: e.uid,
|
uid: e.uid,
|
||||||
userId: e.user_id,
|
userId: e.user_id,
|
||||||
is_sign: true
|
is_sign: true
|
||||||
|
Loading…
Reference in New Issue
Block a user