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

修改bug

This commit is contained in:
Ctrlcvs 2022-08-19 17:51:30 +08:00
parent 12b947523a
commit 33af254ca4

View File

@ -123,7 +123,7 @@ export async function mysSign(e) {
let iscount = "";
let miHoYoApi = new MihoYoApi(e);
let stokens=await miHoYoApi.getStoken(e.user_id)
if (Object.keys(stokens).length>0) {
if (Object.keys(stokens).length==0) {
e.reply("未读取到stoken请检查cookies是否包含login_ticket、以及云崽是否为最新版本V3、V2兼容")
return true;
}
@ -233,7 +233,7 @@ export async function bbsSeach(e){
}
let miHoYoApi = new MihoYoApi(e);
let stokens=await miHoYoApi.getStoken(e.user_id)
if (Object.keys(stokens).length>0) {
if (Object.keys(stokens).length==0) {
let cookiesDoc = await getcookiesDoc()
await replyMsg(e, "未读取到stoken请检查cookies是否包含login_ticket请先绑定stoken再查询~\n"+cookiesDoc);
return true;