mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-10 08:58:15 +08:00
✏️ uid → open_id
This commit is contained in:
@@ -137,9 +137,9 @@ async function cycleGetData() {
|
||||
return;
|
||||
}
|
||||
const data: TGApp.Plugins.Mys.GameLogin.StatusPayloadRaw = JSON.parse(res.payload.raw);
|
||||
cookie.account_id = data.uid;
|
||||
cookie.ltuid = data.uid;
|
||||
cookie.stuid = data.uid;
|
||||
cookie.account_id = data.open_id;
|
||||
cookie.ltuid = data.open_id;
|
||||
cookie.stuid = data.open_id;
|
||||
await getTokens(data.open_token);
|
||||
showSnackbar({
|
||||
text: "登录成功",
|
||||
|
||||
2
src/plugins/Mys/types/GameLogin.d.ts
vendored
2
src/plugins/Mys/types/GameLogin.d.ts
vendored
@@ -83,7 +83,7 @@ declare namespace TGApp.Plugins.Mys.GameLogin {
|
||||
* @return StatusPayloadRaw
|
||||
*/
|
||||
interface StatusPayloadRaw {
|
||||
uid: string;
|
||||
open_id: string;
|
||||
open_token: string;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user