V125-260722:(暂时发现DPD/FSSI/网页频谱显示都不正常,临时提交)1.合并增加 Web 端 FPGA .mcs 在线升级功能,支持升级进度及错误状态反馈。2.合并优化 FPGA 升级后的恢复流程,实现无需断电的 FPGA 配置、JESD 链路及 RF 热恢复。3.合并重构 ORx 功率、FSSI 和 FWD 计算;4.合并DPD相关优化和调试日志;5.合并IQ 频谱数据接收由 eth1 调整至 eth0,降低对外部网口连接状态的依赖。

This commit is contained in:
2026-07-22 17:08:03 +08:00
commit c6ab382383
1655 changed files with 516169 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
(function() {
'use strict';
var CHECK_INTERVAL = 30000;
var SESSION_CHECK_URL = 'login.cgi';
function initSessionCheck() {
if (window.location.pathname.indexOf('login.html') !== -1) {
return;
}
checkSession();
setInterval(checkSession, CHECK_INTERVAL);
document.addEventListener('mousemove', resetTimer);
document.addEventListener('keydown', resetTimer);
document.addEventListener('click', resetTimer);
}
function checkSession() {
var xhr = new XMLHttpRequest();
xhr.open('GET', SESSION_CHECK_URL + '?t=' + Date.now(), true);
xhr.setRequestHeader('Cache-Control', 'no-cache');
xhr.onreadystatechange = function() {
if (xhr.readyState === 4) {
var response = xhr.responseText || '';
if (response.indexOf('UNAUTHORIZED') !== -1) {
redirectToLogin();
return;
}
if (response.indexOf('OK') !== -1) {
return;
}
}
};
try {
xhr.send();
} catch (e) {
console.log('Session check failed:', e);
}
}
function redirectToLogin() {
var currentUrl = window.location.href;
var loginUrl = 'login.html?redirect=' + encodeURIComponent(currentUrl);
if (window.top !== window.self) {
window.top.location.href = loginUrl;
} else {
window.location.href = loginUrl;
}
}
var sessionTimer;
function resetTimer() {
clearTimeout(sessionTimer);
sessionTimer = setTimeout(function() {
checkSession();
}, 60000);
}
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', initSessionCheck);
} else {
initSessionCheck();
}
})();