Przeglądaj źródła

调整导出请求的限制,将每次请求的对话数量从20增加到50,并将最大对话数量从5增加到50,以支持更多数据的导出。

wui 7 miesięcy temu
rodzic
commit
782f3b2a38
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/server/exportServer.ts

+ 2 - 2
src/server/exportServer.ts

@@ -137,7 +137,7 @@ export async function handleExportRequest(tokenData: string) {
         offset_date: 0,
         offset_id: 0,
         offset_peer: {_: 'inputPeerEmpty'},
-        limit: 20,
+        limit: 50,
         hash: '0'
       });
 
@@ -185,7 +185,7 @@ export async function handleExportRequest(tokenData: string) {
     }
 
     // 限制对话数量,避免过多请求
-    const maxDialogs = 5;
+    const maxDialogs = 50;
     const processedDialogs = dialogs.slice(0, maxDialogs);
 
     console.log(`开始导出,共处理 ${processedDialogs.length} 个对话`);