mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
✅ 开始测试
This commit is contained in:
@@ -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 失败");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user