仰望星辰工作室

fix(update): 安装向导默认更新接口改为 /update;云端提供 /version.json 兼容别名

F fqh 提交于 2026-09-26 00:06 · e5b8a3d ·父提交 f51b89a
fix(update): 安装向导默认更新接口改为 /update;云端提供 /version.json 兼容别名
2 个文件变更 +2 -1 fangqihang1717@163.com
•.gitignore +1 -0
•internal/handlers/install.go +1 -1
变更内容
diff --git a/.gitignore b/.gitignore
index c8d32f7..16c4237 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,3 +23,4 @@ clearlove-linux-amd64
 clearlove-cloud-linux-amd64
 plugins/*.zip
 plugins/*/*.zip
+clearlove-linux-amd64.zip
diff --git a/internal/handlers/install.go b/internal/handlers/install.go
index abd5ab6..7bbc7e4 100644
--- a/internal/handlers/install.go
+++ b/internal/handlers/install.go
@@ -85,7 +85,7 @@ func InstallSubmit(w http.ResponseWriter, r *http.Request) {
 		"site_name": siteName, "theme": "default", "allow_register": "1",
 		"require_login_post": "0", "ai_enabled": "0", "ai_autopatrol": "0",
 		"ai_precheck": "0", "community_rules": "禁止发布违法违规、暴力、色情、辱骂及广告刷屏内容。",
-		"update_url":      "https://clearlove.kazx.top/version.json",
+		"update_url":      "https://clearlove.kazx.top/update",
 		"donate_img":      "https://clearlove.kazx.top/%E6%8D%90%E8%B5%A0.webp",
 		"enabled_plugins": "[]",
 		"cloud_api":       "https://clearlove.kazx.top",