feat: 新增一键打开渠道脚本

This commit is contained in:
duanshuwen
2026-03-12 22:31:18 +08:00
parent 236f4c7dc1
commit 792746bfb2
7 changed files with 98 additions and 114 deletions

View File

@@ -23,6 +23,8 @@ export class executeScriptService extends EventEmitter {
const endTime = options?.endTime ?? '';
const operation = options?.operation ?? '';
const tabIndex = options?.tabIndex ?? '';
const channels = options?.channels ?? '';
const startTabIndex = options?.startTabIndex ?? '';
const child = spawn('node', [scriptPath], {
env: {
@@ -32,6 +34,8 @@ export class executeScriptService extends EventEmitter {
END_DATE: String(endTime),
OPERATION: String(operation),
TAB_INDEX: String(tabIndex),
CHANNELS: typeof channels === 'string' ? channels : JSON.stringify(channels),
START_TAB_INDEX: String(startTabIndex),
},
});