优化自动登录

This commit is contained in:
2023-11-07 20:47:28 +08:00
parent c92078b931
commit 183864054e
6 changed files with 121 additions and 28 deletions

View File

@ -246,6 +246,8 @@ async function getRSILauncherToken(channelId) {
return;
}
SCTShowToast("登录游戏中...");
// get claims
let claimsR = await fetch("api/launcher/v3/games/claims", {
method: 'POST', headers: {
@ -311,9 +313,9 @@ function RSIAutoLogin(email, pwd) {
if (pwd !== "") {
$('#password').val(pwd)
}
sessionStorage.setItem('inputEmail', '');
sessionStorage.setItem('inputPassword', '');
if (email !== "" && pwd !== "") {
$("#remember").prop("checked", true);
$('.c-form__submit-button-label').click();
}
});