修改回退

This commit is contained in:
2025-12-01 16:22:40 +08:00
parent 0c80c0dc48
commit f9ff3435af

View File

@@ -1592,7 +1592,7 @@
<script>
// document.addEventListener('DOMContentLoaded', function () {
const sidebar = document.getElementById("sidebar");
@@ -1619,15 +1619,17 @@
const encodedUserId = params.get("userId");
const from = params.get("from");
let token= params.get("token");//app的token
let localtoken= params.get("localtoken");//公众号的localtoken
// app会得到token;
// 手机端会验证token
let token = params.get("token");//app的token
let localtoken = params.get("localtoken");//公众号的localtoken
// app会得到token;
// 手机端会验证token
if ((!getCookie("token")|| localtoken!= getCookie("token")) && isMobile()&&!token) {
window.location.href = './middle.html';
}
if ((!getCookie("token") || localtoken != getCookie("token")) && isMobile() && !token) {
window.location.href = './middle.html';
} else if (!isMobile() && getCookie('token')) {
}
@@ -1923,8 +1925,15 @@
}
function logout() {
deleteCookie('userId');
deleteCookie('token');
deleteCookie("ai-Token", "ai.satabot.com")
window.location.href = 'http://ri.satabot.com/#/login?goRemote=1&clear=1';
// 清空历史记录(黑科技)
history.pushState(null, null, location.href);
window.addEventListener('popstate', function () {
history.pushState(null, null, location.href);
});
location.replace('https://ri.satabot.com/#/login?goRemote=1&clear=1');
}
function createSession(userId, sessionId) {