更新若干功能

This commit is contained in:
李琦
2026-08-15 17:18:00 +08:00
parent 4954295961
commit 6a81e479ef
77 changed files with 8165 additions and 2372 deletions

6
app.go
View File

@@ -39,6 +39,10 @@ type App struct {
fsMu sync.Mutex
fsCfg FileStorageConfig
fsCfgAt time.Time
// 管理员敏感操作二次验证(内存,进程内有效)
stepupMu sync.Mutex
stepupToken string
stepupExp time.Time
}
func NewApp() *App {
@@ -57,9 +61,11 @@ func (a *App) ServiceStartup(ctx context.Context, _ application.ServiceOptions)
a.startup(ctx)
a.RefreshShell()
go a.runAutoUpdateLoop()
go a.runAppUpdateLoop()
go a.runReminderLoop()
go a.runSyncLoop()
go a.runTeamDigestLoop()
go a.runActivityPingLoop()
return nil
}