From 5f45cde9840ceeec13f7b94920463f7757f3a69f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com> Date: Fri, 17 Apr 2026 17:15:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=A4=A7=E5=93=A5=E6=B1=A0?= =?UTF-8?q?=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BrotherInfoDialog.vue | 337 ++++++++++++++++++++++++ src/types/electron.d.ts | 32 +++ src/views/auto-dm/AutoDmTkWorkbench.vue | 14 + 3 files changed, 383 insertions(+) create mode 100644 src/components/BrotherInfoDialog.vue diff --git a/src/components/BrotherInfoDialog.vue b/src/components/BrotherInfoDialog.vue new file mode 100644 index 0000000..015bd41 --- /dev/null +++ b/src/components/BrotherInfoDialog.vue @@ -0,0 +1,337 @@ + + + diff --git a/src/types/electron.d.ts b/src/types/electron.d.ts index d1c8f5c..8e458bf 100644 --- a/src/types/electron.d.ts +++ b/src/types/electron.d.ts @@ -189,6 +189,38 @@ export interface ElectronAPI { onUpdateError: (callback: (error: { message: string }) => void) => () => void onUpdateManualInstall: (callback: (info: { path: string }) => void) => () => void onGreetingStatsChanged: (callback: (stats: GreetingStats) => void) => () => void + + tk?: { + updateStartConfig: (config: string) => Promise<{ success: boolean; error?: string }> + getDataCount: () => Promise + loginTikTok: () => Promise + loginBigTikTok: () => Promise + loginBackStage: (data: string) => Promise + loginBackStageCopy: (data: string) => Promise + checkBackStageLoginStatus: (account?: string) => Promise + checkBackStageLoginStatusCopy: () => Promise + stopCrawl: () => Promise + getVersion: () => Promise + checkTkLoginStatus: () => Promise + visitAnchor: (id: string) => Promise + exportData: (data: string) => Promise + controlTask: (data: string) => Promise<{ success: boolean; message?: string; error?: string }> + getBrotherInfo: () => Promise + queryBrotherInfo: (data: string) => Promise + getAllBrotherInfo: () => Promise + deleteBrotherInfo: (data: string) => Promise + findBigBrother: (data: string) => Promise<{ success: boolean }> + storageSet: (data: string) => Promise<{ success: boolean; error?: string }> + storageRead: (data: string) => Promise + openRoom: (id: string) => Promise + storageAccount: (data: string) => Promise<{ success: boolean; error?: string }> + readAccount: (data: string) => Promise + setClipboard: (text: string) => Promise<{ success: boolean; error?: string }> + startBrotherMonitor: () => Promise<{ success: boolean; error?: string }> + getBrotherLoginStatus: () => Promise + visitGifter: (data: string) => Promise<{ success: boolean; error?: string }> + closeAllBrowsers: () => Promise<{ success: boolean; error?: string }> + } } // 声明全局类型 diff --git a/src/views/auto-dm/AutoDmTkWorkbench.vue b/src/views/auto-dm/AutoDmTkWorkbench.vue index 52ed936..bcd2866 100644 --- a/src/views/auto-dm/AutoDmTkWorkbench.vue +++ b/src/views/auto-dm/AutoDmTkWorkbench.vue @@ -141,6 +141,17 @@ +
+
+
+
大哥池
+

参考 brother_info 数据池,维护大哥列表并支持切换为大哥池模式启动任务。

+
+ {{ isBrotherInfoMode ? '当前使用中' : '可切换' }} +
+ +
+
本次提交参数
{{ payloadPreview }}
@@ -208,6 +219,7 @@ + @@ -220,6 +232,7 @@ import ViewPlaceholder from '@/components/ViewPlaceholder.vue' import HostListDialog from '@/components/HostListDialog.vue' import AIConfigDialog from '@/components/AIConfigDialog.vue' import GreetingDialog from '@/components/GreetingDialog.vue' +import BrotherInfoDialog from '@/components/BrotherInfoDialog.vue' const props = defineProps({ navSidebarWidth: { type: Number, default: 144 } }) const TIKTOK_VIEW_IDS = Array.from({ length: 9 }, (_, index) => index + 10) @@ -231,6 +244,7 @@ const statusText = ref('待启动') const showAIDialog = ref(false) const showHostDialog = ref(false) const showGreetingDialog = ref(false) +const showBrotherInfoDialog = ref(false) const aiConfigured = ref(false) const loginConfirmed = ref(false) const preparedConfigKey = ref('')