开始测试

This commit is contained in:
BTMuli
2023-05-19 14:55:02 +08:00
parent 97ff6e1350
commit f75a39b783
2 changed files with 21 additions and 45 deletions

View File

@@ -48,6 +48,8 @@ async function initCookie (ticket: string, uid: string): Promise<void> {
const mid = await verifyLToken(cookie.ltoken, cookie.ltuid, cookie.stoken);
if (typeof mid === "string") cookie.mid = mid;
await TGSqlite.saveAppData("cookie", JSON.stringify(cookie));
} else {
throw new Error("获取 token 失败");
}
}