diff --git a/apps/sign.js b/apps/sign.js index 86aee8a..c8144eb 100644 --- a/apps/sign.js +++ b/apps/sign.js @@ -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;