下载改为带签名 token 的临时链接 + window.location.href 原生下载:新增 GET /:id/files/download-token(HMAC 签名,5 分钟有效,密钥随进程随机),download 路由对带 t 参数请求验签;前端去掉 fetch+blob/dataURL 方案;JS 版本号升至 v=20260831d

This commit is contained in:
2026-08-31 20:32:08 +08:00
parent b918ac4650
commit edc0349708
3 changed files with 50 additions and 32 deletions
+1 -1
View File
@@ -111,6 +111,6 @@
<div class="toast hidden" id="toast"></div>
<!-- 发版时更新 v 参数,避免移动端浏览器缓存旧 JS -->
<script src="/js/app.js?v=20260831c"></script>
<script src="/js/app.js?v=20260831d"></script>
</body>
</html>