This commit is contained in:
SunCheng
2026-02-10 17:49:19 +08:00
parent 3e18283e52
commit d052ae5197
104 changed files with 10369 additions and 3000 deletions

View File

@@ -34,7 +34,7 @@ public class BudgetService(
IBudgetArchiveRepository budgetArchiveRepository,
ITransactionRecordRepository transactionRecordRepository,
ITransactionStatisticsService transactionStatisticsService,
IOpenAiService openAiService,
ISmartHandleService smartHandleService,
IMessageService messageService,
ILogger<BudgetService> logger,
IBudgetSavingsService budgetSavingsService,
@@ -343,7 +343,8 @@ public class BudgetService(
直接输出纯净 HTML 内容,不要带有 Markdown 代码块包裹。
""";
var htmlReport = await openAiService.ChatAsync(dataPrompt);
// 使用 SmartHandleService 统一封装的报告生成方法
var htmlReport = await smartHandleService.GenerateBudgetReportAsync(dataPrompt, year, month);
if (!string.IsNullOrEmpty(htmlReport))
{
await messageService.AddAsync(