From 29a4e92942a84b974485b579411d9baae05b4b9c Mon Sep 17 00:00:00 2001 From: zpc Date: Sun, 30 Mar 2025 01:23:28 +0800 Subject: [PATCH] 112 --- ShengShengBuXi/Hubs/AudioHub.cs | 2 +- ShengShengBuXi/Pages/Admin.cshtml | 2 +- ShengShengBuXi/Services/AudioProcessingService.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ShengShengBuXi/Hubs/AudioHub.cs b/ShengShengBuXi/Hubs/AudioHub.cs index bb923dc..a8bfcc2 100644 --- a/ShengShengBuXi/Hubs/AudioHub.cs +++ b/ShengShengBuXi/Hubs/AudioHub.cs @@ -743,7 +743,7 @@ namespace ShengShengBuXi.Hubs /// /// 获取数量 /// 处理任务 - public async Task GetRecentRecordings(int count = 100) + public async Task GetRecentRecordings(int count = 1000) { if (!_clients.TryGetValue(Context.ConnectionId, out var clientInfo)) { diff --git a/ShengShengBuXi/Pages/Admin.cshtml b/ShengShengBuXi/Pages/Admin.cshtml index ef67fd7..751e1a5 100644 --- a/ShengShengBuXi/Pages/Admin.cshtml +++ b/ShengShengBuXi/Pages/Admin.cshtml @@ -1156,7 +1156,7 @@ log("GetRecordingsPage方法不存在,回退到旧方法: " + err); // 兼容旧方法,获取所有录音后在前端筛选 - connection.invoke("GetRecentRecordings", 100) + connection.invoke("GetRecentRecordings", 3000) .then(() => { log("已成功发送获取录音列表请求(旧方法)"); }) diff --git a/ShengShengBuXi/Services/AudioProcessingService.cs b/ShengShengBuXi/Services/AudioProcessingService.cs index 27147cc..38701e6 100644 --- a/ShengShengBuXi/Services/AudioProcessingService.cs +++ b/ShengShengBuXi/Services/AudioProcessingService.cs @@ -495,7 +495,7 @@ public class AudioProcessingService : IAudioProcessingService // 只返回文件名,不包含路径 var fileNames = files.Select(f => f.Name).ToArray(); - _logger.LogInformation($"返回录音文件: {string.Join(", ", fileNames)}"); + //_logger.LogInformation($"返回录音文件: {string.Join(", ", fileNames)}"); return fileNames; } catch (Exception ex)