功能:完善 API 卡密发货与自动化日志

This commit is contained in:
Christ committed 2026-08-21 22:14:39 +08:00
1 parent d92fb0f4cc
commit f5064254dc
106 files changed
+4302 -600

No files matched your search

+2 -1
View File
@@ -13,6 +13,7 @@ import (
"xianyu-go/internal/browser"
composition "xianyu-go/internal/composition"
"xianyu-go/internal/db"
"xianyu-go/internal/netguard"
"xianyu-go/internal/renewal"
"xianyu-go/internal/server"
)
@@ -147,7 +148,7 @@ func BuildRuntime(options RuntimeOptions, infrastructure RuntimeInfrastructure)
// transportApplications、transportErr 分别是通知等共享应用服务集合及其构造错误。
transportApplications, transportErr := adapter.NewTransportApplicationServices(adapter.TransportApplicationServiceOptions{
AutomationDependencies: automationDependencies, MiscDependencies: miscDependencies, AdminSettingsDependencies: adminSettingsDependencies,
AdminRuntime: runtimeBundle.Manager, AccountTaskRunner: adapter.NewAccountTaskRunner(runtimeBundle.Automation), ChannelSender: runtimeBundle.Notifier, ModelClient: adapter.NewAIModelClient(),
AdminRuntime: runtimeBundle.Manager, AccountTaskRunner: adapter.NewAccountTaskRunner(runtimeBundle.Automation), ChannelSender: runtimeBundle.Notifier, ModelClient: adapter.NewAIModelClient(), OutboundPolicy: netguard.DefaultPolicy(),
})
if transportErr != nil {
return Runtime{}, fmt.Errorf("构造 transport 应用服务失败: %w", transportErr)
@@ -216,7 +216,7 @@ func ServerDependencies(services *composition.Services, base HTTPDependencies, s
AccountSummaries: ports.AccountSummaries, AccountTasks: ports.AccountTasks, Chat: ports.Chat,
UncertainNotifications: ports.UncertainNotifications, NotificationChannels: ports.NotificationChannels,
Analytics: ports.Analytics, AutomationIssues: ports.AutomationIssues, AutomationRules: ports.AutomationRules,
Cards: ports.Cards, PublishAutomationRules: ports.PublishAutomationRules, DefaultReplies: ports.DefaultReplies,
Cards: ports.Cards, APIRequestTester: ports.APICardTester, PublishAutomationRules: ports.PublishAutomationRules, DefaultReplies: ports.DefaultReplies,
Keywords: ports.Keywords, Settings: ports.Settings, Admin: ports.Admin,
}),
}, nil