feat: 离线License批量删除;同步循环加固(启动即跑/pending自动握手/防重入/panic恢复,移至main启动);同步时间显示到秒

This commit is contained in:
Logan.Li committed 2026-09-14 22:08:43 +08:00
1 parent 30b87dec62
commit 252ae14aef
5 files changed
+79 -11

No files matched your search

-3
View File
@@ -96,9 +96,6 @@ func SetupRouter(db *gorm.DB, cfg *config.Config) *gin.Engine {
settingController := setting.NewSettingController(db)
syncController := synccontroller.NewController(db, cfg)
// 启动节点定时双向同步(宽松节奏,默认 10 分钟) // Logan.Li
syncController.Svc().StartSyncLoop(cfg.SyncIntervalMinutes)
api := r.Group("/api")
{
// ============ 节点互联(对端调用,HMAC 签名认证,非 JWT) ============