修复: 走查批修22项缺陷(样式常量/配置原子写/壁纸下载校验/前端泄漏)

- GWL_EXSTYLE 常量多写一个F致样式写入错误偏移
- 配置读写加锁+临时文件原子替换;更新窗口Promise化修白屏
- Bing壁纸: 裁剪后索引同步/下载校验状态码/超2000裁剪/隐藏图切换
- 天气假兜底不再入缓存; 相册循环重入保护; 中文日志按rune截断
- 主题壁纸rAF泄漏清理钩子; 知识卡热区复位; 照片清空指令透传
- 设置窗双开竞态+销毁后可重建; 消息循环-1退出; 重启失败不退出
This commit is contained in:
lxy committed 2026-12-02 22:30:43 +08:00
1 parent 5342c5e489
commit 5e93e04581
21 files changed
+217 -58

No files matched your search

+21 -11
View File
@@ -82,13 +82,32 @@ body {
<div class="btn-row" id="btnRow"></div>
</div>
<script>
const info = JSON.parse(window.getUpdateInfo());
const container = document.getElementById('app');
const versionTag = document.getElementById('versionTag');
const notes = document.getElementById('notes');
const meta = document.getElementById('meta');
const btnRow = document.getElementById('btnRow');
function formatSize(bytes) {
if (!bytes) return '';
if (bytes >= 1048576) return (bytes / 1048576).toFixed(1) + 'MB';
if (bytes >= 1024) return (bytes / 1024).toFixed(1) + 'KB';
return bytes + 'B';
}
function doUpdate() {
window.startUpdate();
window.close();
}
function skip() {
window.skipUpdate();
window.close();
}
window.getUpdateInfo().then(t => {
const info = JSON.parse(t);
versionTag.textContent = '发现新版本 v' + info.version;
notes.textContent = info.releaseNotes || '';
@@ -111,16 +130,7 @@ if (info.force) {
'<button class="btn btn-secondary" onclick="skip()">稍后</button>' +
'<button class="btn btn-primary" onclick="doUpdate()">立即升级</button>';
}
function doUpdate() {
window.startUpdate();
window.close();
}
function skip() {
window.skipUpdate();
window.close();
}
});
</script>
</body>
</html>