启动器:品牌改为 DNF90 灵宝小竹单机版,本地版本号 v2026.11.05,静态响应禁缓存
- index.html:title / 品牌条 / 首页主标题 / 赞助弹窗文案 统一改品牌名 - server.py:CURRENT_VERSION 与 statVersion 占位同步到 v2026.11.05 - server.py:Handler._send 增加 Cache-Control: no-store,避免 WebView2 缓存旧页面
This commit is contained in:
1 parent
ee3e8d0ced
commit
040f6fbd93
2 files changed
+11
-7
No files matched your search
+6
-2
@@ -66,7 +66,7 @@ def console_running() -> bool:
|
||||
# 更新检查配置:Gitea 自托管仓库的 Releases 地址
|
||||
UPDATE_REPO_API = "https://git.hanfuit.com/api/v1/repos/Lingbao/90CNServer/releases"
|
||||
UPDATE_REPO_WEB = "https://git.hanfuit.com/Lingbao/90CNServer/releases"
|
||||
CURRENT_VERSION = "v2026.11.04" # 本地当前版本号
|
||||
CURRENT_VERSION = "v2026.11.05" # 本地当前版本号
|
||||
|
||||
|
||||
def base_dir():
|
||||
@@ -540,6 +540,10 @@ class Handler(BaseHTTPRequestHandler):
|
||||
self.send_header("Content-Type", ctype)
|
||||
self.send_header("Content-Length", str(len(body)))
|
||||
self.send_header("Access-Control-Allow-Origin", "*")
|
||||
# 内嵌 WebView2 会缓存本地页面:升级 exe 后页面/样式可能仍是旧的,这里一律禁缓存
|
||||
self.send_header("Cache-Control", "no-store, no-cache, must-revalidate")
|
||||
self.send_header("Pragma", "no-cache")
|
||||
self.send_header("Expires", "0")
|
||||
self.end_headers()
|
||||
self.wfile.write(body)
|
||||
|
||||
@@ -2345,7 +2349,7 @@ def show_window(url):
|
||||
|
||||
# 主窗口:启动器(无边框,屏幕居中)
|
||||
window = webview.create_window(
|
||||
"DNF90 灵狐小竹整合单机版",
|
||||
"DNF90 灵宝小竹单机版",
|
||||
url,
|
||||
width=1204,
|
||||
height=717,
|
||||
|
||||
Reference in new issue
Block a user