第58批续29:PHP积分HTML污染修复+closeModal缺失修复

- adminDeduct/adminAddBonds 用 exit(json_encode()) 改为 jsonResponse()
  jsonResponse 内部清空所有缓冲区再输出,避免PHP警告污染JSON
- admin.php 添加 closeModal 函数(原本缺少,showModal 路径会调用)
This commit is contained in:
ypsdf1
2026-10-29 13:21:47 +08:00
parent 183d24ef8d
commit f6805bfd17
2 changed files with 14 additions and 9 deletions
+5
View File
@@ -2117,6 +2117,11 @@ function showModal(title, message, defaultValue, customHtml) {
});
}
// ★ 第58批续29-问题3:添加 closeModal 函数(admin.php 原本缺少)
function closeModal() {
document.querySelectorAll('[data-modal-overlay]').forEach(el => el.remove());
}
// ===== 自定义背景系统(第46批):纯色 / 图片URL / API壁纸(必应) 三模式 =====
let _wpPendingUrl = null; // 待应用的图片URL(预览/获取后暂存,点应用才生效)