2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

feat: 自动更新失败后尝试修复

This commit is contained in:
耗子
2025-01-02 21:32:13 +08:00
parent 7dc98096a5
commit 645a6d2b98

View File

@@ -120,6 +120,7 @@ func (r *PanelTask) updatePanel() {
if download := collect.First(panel.Downloads); download != nil {
if err = r.backupRepo.UpdatePanel(panel.Version, download.URL, download.Checksum); err != nil {
r.log.Warn("[Panel Task] failed to update panel", slog.Any("err", err))
_ = r.backupRepo.FixPanel()
}
}
})