fix: InitService自动合并模板新增字段(解决旧config缺branch问题)

This commit is contained in:
qinglong
2026-06-14 10:39:03 +08:00
parent fb8bf393f2
commit 27115942ea
2 changed files with 19 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ class UpdateService:
cfg = init.get_config("base").get("framework", {})
except Exception:
cfg = {}
self.branch = cfg.get("branch", "dev")
self.branch = cfg.get("branch", "main")
self.repo_url = cfg.get("repo_url", "https://git.yeij.top/AskaEth/SenSu").rstrip("/")
self.repo_name = self.repo_url.rstrip("/").split("/")[-1]
# ZIP 下载地址: Gitea 格式