mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-22 19:10:53 +08:00
修正未绑定cookie时会报错
This commit is contained in:
parent
1eb79ddbe5
commit
0819e3de5f
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user