Skip to content
Back to search

douyin-upload-mcp-skill

基于浏览器自动化的抖音视频/图文上传 MCP & Skill,适用于openclaw或任何支持skill,mcp的agent. o( ̄▽ ̄)ブ

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/wjz-p--douyin-upload-mcp-skill/badge.svg)](/listings/wjz-p--douyin-upload-mcp-skill)

HTML

<a href="/listings/wjz-p--douyin-upload-mcp-skill"><img src="/api/listings/wjz-p--douyin-upload-mcp-skill/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

SKILL.md · Manifest · 115 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ---
  2. name: douyin-upload-mcp-skill
  3. description: 通过抖音创作者平台(creator.douyin.com)发布视频和图文内容。首选调用 MCP 工具完成操作,MCP 无法满足时可运行 Skill 脚本兜底。禁止自行启动外部浏览器访问抖音。
  4. ---
  5. # 抖音 MCP Skill
  6. ## ⚠️ 操作优先级(必须遵守)
  7. 1. **🥇 首选:调用 MCP 工具** — 直接调用本 Skill 暴露的 MCP 工具完成操作。绝大多数场景都应该走这条路径。
  8. 2. **🥈 兜底:运行 Skill 脚本** — 当 MCP 工具无法满足需求时,运行本 Skill 项目中的脚本(如 `demo.js`、`demo-imagetext.js`)
  9. 3. **🥉 最次:连接 Skill 管理的浏览器** — 仅前两种方式都无法解决时,通过 `douyin_browser_info` 获取 CDP 连接信息接管浏览器。**需先征得用户同意**
  10. **绝对禁止**:自行启动新的浏览器实例访问抖音页面。
  11. ## 支持范围
  12. | 类型 | 支持 | 说明 |
  13. |------|------|------|
  14. | 发布视频 | ✅ | 上传视频 + 选封面 + 填标题简介 + 发布 |
  15. | 发布图文 | ✅ | 上传图片 + 填标题简介 + 选音乐 + 发布 |
  16. | 发布全景视频 | ❌ | 不支持(场景极少) |
  17. | 发布纯文字 | ❌ | 不支持(场景极少) |
  18. ## 可用 MCP 工具
  19. ### 核心发布工具
  20. | 工具名 | 说明 | 入参 |
  21. |--------|------|------|
  22. | `douyin_publish_video` | 发布视频(全自动,内部自动检查登录) | `filePath`(必填), `title`, `description`, `timeout` |
  23. | `douyin_publish_imagetext` | 发布图文(全自动,内部自动检查登录) | `filePaths`(必填,字符串数组), `title`, `description` |
  24. ### 登录与状态
  25. | 工具名 | 说明 | 入参 |
  26. |--------|------|------|
  27. | `douyin_check_login` | 检查登录状态并推进登录流程 | `smsCode`(可选,短信验证码) |
  28. | `douyin_probe` | 探测页面各元素状态 | 无 |
  29. | `douyin_screenshot` | 对当前页面截图保存 | 无 |
  30. ### 页面操作
  31. | 工具名 | 说明 | 入参 |
  32. |--------|------|------|
  33. | `douyin_navigate_to` | 打开指定抖音页面 URL(仅 douyin.com 域名) | `url`, `timeout` |
  34. | `douyin_reload_page` | 刷新页面 | `timeout` |
  35. | `douyin_browser_info` | 获取浏览器连接信息(兜底接管用) | 无 |
  36. ## 典型使用流程
  37. ### 1. 登录(多次调用 `douyin_check_login` 推进)
  38. ```
  39. 第1次调用 → phase: qrcode → 用户扫码
  40. 第2次调用 → phase: sms_verification → 自动点击接收短信
  41. 第3次调用 → phase: sms_code_input → 用户告知验证码
  42. 第4次调用(smsCode="123456") → phase: logged_in → 登录完成
  43. ```
  44. ### 2. 发布视频
  45. ```
  46. 调用 douyin_publish_video:
  47. filePath: "C:/videos/test.mp4"
  48. title: "我的视频"
  49. description: "视频简介 #标签"
  50. ```
  51. ### 3. 发布图文
  52. ```
  53. 调用 douyin_publish_imagetext:
  54. filePaths: ["C:/images/1.png", "C:/images/2.png"]
  55. title: "我的图文"
  56. description: "图文简介 #标签"
  57. ```
  58. ## MCP 客户端配置
  59. ```json
  60. {
  61. "mcpServers": {
  62. "douyin": {
  63. "command": "node",
  64. "args": ["<项目绝对路径>/src/mcp-server.js"]
  65. }
  66. }
  67. }
  68. ```
  69. 也可通过 `npm run mcp` 手动启动。
  70. ## 架构
  71. ```
  72. MCP Client → mcp-server.js → index.js → browser.js → Daemon
  73. ↓
  74. douyin-ops.js → operator.js → CDP → Chrome → douyin.com
  75. ```
  76. - **Daemon**(独立进程):管理浏览器生命周期,闲置 30 分钟自动销毁
  77. - **browser.js**:Skill 侧连接器,按需自启 Daemon
  78. - **operator.js**:纯 CDP 底层原子操作
  79. - **douyin-ops.js**:抖音业务编排层
  80. - **mcp-server.js**:MCP 工具协议层
  81. ### 端口配置(与 gemini-skill 共享同一浏览器实例)
  82. | 配置项 | 默认值 | 说明 |
  83. |--------|--------|------|
  84. | CDP 端口 | 40821 | 与 gemini-skill 共享 |
  85. | Daemon 端口 | 40225 | 与 gemini-skill 共享 |
  86. 多个 skill 共用同一个浏览器实例 + 同一个 Daemon,各 skill 各用各的 tab。
README.md · README · 192 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ## 基于 CDP 操控抖音创作者平台,实现视频、图文的全自动发布。
  2. <p align="center">
  3. <a href="https://github.com/WJZ-P/douyin-upload-mcp-skill/">
  4. <img src="markdown/douyin.png" alt="Logo" width="150" height="150" style="margin: 0; border-radius: 24px;">
  5. </a>
  6. </p>
  7. <h1 align="center">Douyin Upload MCP Skill</h1>
  8. <p align="center">
  9. <a href="#快速开始">快速开始</a>
  10. ·
  11. <a href="https://github.com/WJZ-P/douyin-upload-mcp-skill/issues">报告 Bug</a>
  12. ·
  13. <a href="https://github.com/WJZ-P/douyin-upload-mcp-skill/issues">提出新特性</a>
  14. </p>
  15. <p align="center">
  16. <a href="./README.en.md">English</a> | 中文
  17. </p>
  18. <br>
  19. <p align="center">
  20. <img src="./markdown/example.png" alt="抖音自动发布示例" width="100%">
  21. </p>
  22. <p align="center"><em>▲ 通过 MCP 工具全自动发布视频和图文</em></p>
  23. <br>
  24. # douyin-upload-mcp-skill
  25. 基于 CDP(Chrome DevTools Protocol)的抖音创作者平台自动化上传服务,通过 MCP 协议对外暴露工具,支持视频和图文的全自动发布。
  26. ## 功能
  27. - **视频发布**:上传视频 → 等待转码 → AI 封面推荐 → 填写标题/简介 → 一键发布
  28. - **图文发布**:上传多张图片 → 填写标题/简介 → 自动选择音乐 → 一键发布
  29. - **登录管理**:扫码 → 短信验证 → 验证码输入,全流程自动推进
  30. - **浏览器托管**:独立 Daemon 进程管理 Chrome 生命周期,闲置 30 分钟自动销毁
  31. ## 快速开始
  32. ### 1. 安装依赖
  33. ```bash
  34. npm install
  35. ```
  36. ### 2. 作为 MCP 服务使用(推荐)
  37. 在 MCP 客户端配置中添加:
  38. ```json
  39. {
  40. "mcpServers": {
  41. "douyin": {
  42. "command": "node",
  43. "args": ["<项目绝对路径>/src/mcp-server.js"]
  44. }
  45. }
  46. }
  47. ```
  48. 或手动启动:
  49. ```bash
  50. npm run mcp
  51. ```
  52. ### 3. 运行 Demo 测试
  53. ```bash
  54. # 视频发布
  55. node src/demo.js
  56. # 图文发布
  57. node src/demo-imagetext.js
  58. ```
  59. ## MCP 工具列表
  60. ### 核心发布
  61. | 工具 | 说明 | 必填参数 | 可选参数 |
  62. |------|------|----------|----------|
  63. | `douyin_publish_video` | 发布视频 | `filePath` | `title`, `description`, `timeout` |
  64. | `douyin_publish_imagetext` | 发布图文 | `filePaths` | `title`, `description` |
  65. ### 登录与状态
  66. | 工具 | 说明 | 可选参数 |
  67. |------|------|----------|
  68. | `douyin_check_login` | 检查登录状态并推进登录流程 | `smsCode` |
  69. | `douyin_probe` | 探测页面元素状态 | — |
  70. | `douyin_screenshot` | 页面截图 | — |
  71. ### 页面操作
  72. | 工具 | 说明 | 参数 |
  73. |------|------|------|
  74. | `douyin_navigate_to` | 导航到指定抖音 URL | `url`, `timeout` |
  75. | `douyin_reload_page` | 刷新页面 | `timeout` |
  76. | `douyin_browser_info` | 获取浏览器连接信息 | — |
  77. ## 登录流程
  78. MCP 不支持中途交互,登录需要多次调用 `douyin_check_login` 推进:
  79. ```
  80. 第 1 次调用 → phase: qrcode → 截图保存二维码,用户扫码
  81. 第 2 次调用 → phase: sms_verification → 自动点击「接收短信验证码」
  82. 第 3 次调用 → phase: sms_code_input → 提示输入验证码
  83. 第 4 次调用 → phase: logged_in → 传入 smsCode 完成登录
  84. ```
  85. ## 架构
  86. ```
  87. MCP Client → mcp-server.js → index.js → browser.js → Daemon
  88. ↓
  89. douyin-ops.js → operator.js → CDP → Chrome → douyin.com
  90. ```
  91. | 层 | 文件 | 职责 |
  92. |----|------|------|
  93. | 协议层 | `mcp-server.js` | MCP 工具注册,stdio 传输 |
  94. | 入口层 | `index.js` | 对外暴露 `createDouyinSession()` |
  95. | 业务层 | `douyin-ops.js` | 抖音业务编排(上传、填写、发布) |
  96. | 原子层 | `operator.js` | CDP 底层操作(locate/click/type),带人类行为模拟 |
  97. | 连接层 | `browser.js` | 连接 Daemon 获取浏览器实例 |
  98. | Daemon | `daemon/` | 独立进程管理浏览器生命周期 |
  99. ## 配置
  100. 所有配置通过环境变量或 `.env` 文件设置。项目根目录已提供 `.env` 模板,可直接修改。
  101. **配置优先级:** `process.env` > `.env.development` > `.env` > 代码默认值
  102. > `.env.development` 不会被 git 追踪,适合存放本地私有配置(如浏览器路径)。
  103. ### 浏览器配置
  104. | 变量 | 默认值 | 说明 |
  105. |------|--------|------|
  106. | `BROWSER_PATH` | 自动检测 | 浏览器可执行文件路径,支持 Chrome / Edge / Chromium。不设则自动按优先级检测系统已安装的浏览器 |
  107. | `BROWSER_DEBUG_PORT` | `40821` | CDP 远程调试端口。多个 skill(如 gemini-skill)共享同一端口即共享同一浏览器实例 |
  108. | `BROWSER_HEADLESS` | `false` | 是否无头模式。首次使用建议关闭(`false`),方便扫码登录 |
  109. | `BROWSER_USER_DATA_DIR` | `~/.wjz_browser_data` | 浏览器用户数据目录,保存登录态、cookies 等。首次运行会自动从系统默认浏览器目录克隆 |
  110. | `BROWSER_PROTOCOL_TIMEOUT` | `60000` | CDP 协议超时时间(毫秒)。视频上传等长操作可适当增大 |
  111. ### Daemon 配置
  112. | 变量 | 默认值 | 说明 |
  113. |------|--------|------|
  114. | `DAEMON_PORT` | `40225` | Daemon HTTP 服务端口。与 gemini-skill 共享同一 Daemon |
  115. | `DAEMON_TTL_MS` | `1800000` | 闲置超时时间(毫秒),默认 30 分钟。超时后自动关闭浏览器并退出 Daemon,下次调用时自动重新拉起 |
  116. ### 其他配置
  117. | 变量 | 默认值 | 说明 |
  118. |------|--------|------|
  119. | `OUTPUT_DIR` | `./douyin-output` | 截图、二维码等输出文件目录 |
  120. | `DOUYIN_URL` | `https://creator.douyin.com/` | 抖音创作者平台首页 URL |
  121. ### 关于 OpenClaw 浏览器复用
  122. [OpenClaw](https://github.com/) 的默认 CDP 端口是 **18800**。如果你希望复用 OpenClaw 已启动的浏览器会话,可以将 `BROWSER_DEBUG_PORT` 改为 `18800`:
  123. ```env
  124. BROWSER_DEBUG_PORT=18800
  125. ```
  126. **但请注意**:OpenClaw 自带的浏览器会话**没有集成 Stealth 反爬插件**,在反检测能力上不如本项目自行维护的浏览器实例。本项目使用 `puppeteer-extra-plugin-stealth` 提供了完整的反爬保护(隐藏 webdriver 标记、模拟真实浏览器指纹等),能更好地规避抖音平台的自动化检测。
  127. **建议**:除非有特殊需求,推荐使用默认端口 `40821`,让项目自行管理浏览器实例以获得最佳的反爬效果。
  128. ## 技术栈
  129. - **puppeteer-core** + **puppeteer-extra-plugin-stealth**:CDP 连接 + 反检测
  130. - **@modelcontextprotocol/sdk**:MCP 协议实现
  131. - **原生 Node.js HTTP**:Daemon 微服务
  132. ## License
  133. [AGPL-3.0](LICENSE)
  134. ## LINUX DO
  135. 本项目支持 [LINUX DO](https://linux.do) 社区
src/daemon/engine.js · Bundled script · 271 lines · 2 findings marked
  1. /**
  2. * engine.js — 浏览器引擎
  3. *
  4. * 职责:
  5. * 维护 _browser 单例,封装 launch / connect / terminate。
  6. * 复用 stealth 插件、反检测参数、路径检测逻辑。
  7. */
  8. import puppeteerCore from 'puppeteer-core';
  9. import { addExtra } from 'puppeteer-extra';
  10. import StealthPlugin from 'puppeteer-extra-plugin-stealth';
  11. import { createConnection } from 'node:net';
  12. import { existsSync, mkdirSync, cpSync } from 'node:fs';
  13. import { platform, homedir } from 'node:os';
  14. import { join, basename } from 'node:path';
  15. import config from '../config.js';
  16. // ── Stealth 包装 ──
  17. const puppeteer = addExtra(puppeteerCore);
  18. puppeteer.use(StealthPlugin());
  19. // ── 单例 ──
  20. let _browser = null;
  21. let _shuttingDown = false;
  22. let _shutdownCallback = null;
  23. export function onBrowserExit(cb) {
  24. _shutdownCallback = cb;
  25. }
  26. function registerDisconnectHandler(browser) {
  27. browser.on('disconnected', () => {
  28. if (_shuttingDown) return;
  29. console.log('[engine] 🔌 浏览器连接断开(用户关闭了浏览器窗口?)');
  30. _browser = null;
  31. if (_shutdownCallback) {
  32. _shutdownCallback();
  33. }
  34. });
  35. }
  36. // ── 浏览器候选路径 ──
  37. const BROWSER_CANDIDATES = {
  38. win32: [
  39. 'C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe',
  40. 'C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe',
  41. 'C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe',
  42. 'C:\\Program Files\\Microsoft\\Edge\\Application\\msedge.exe',
  43. 'C:\\Program Files\\Chromium\\Application\\chrome.exe',
  44. ],
  45. darwin: [
  46. '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome',
  47. '/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge',
  48. '/Applications/Chromium.app/Contents/MacOS/Chromium',
  49. ],
  50. linux: [
  51. '/usr/bin/google-chrome',
  52. '/usr/bin/google-chrome-stable',
  53. '/usr/bin/microsoft-edge',
  54. '/usr/bin/microsoft-edge-stable',
  55. '/usr/bin/chromium',
  56. '/usr/bin/chromium-browser',
  57. '/snap/bin/chromium',
  58. ],
  59. };
  60. function detectBrowser() {
  61. const envPaths = [
  62. process.env.PROGRAMFILES,
  63. process.env['PROGRAMFILES(X86)'],
  64. process.env.LOCALAPPDATA,
  65. ];
  66. const os = platform();
  67. const candidates = [...(BROWSER_CANDIDATES[os] || [])];
  68. if (os === 'win32') {
  69. for (const base of envPaths) {
  70. if (!base) continue;
  71. candidates.push(
  72. `${base}\\Google\\Chrome\\Application\\chrome.exe`,
  73. `${base}\\Microsoft\\Edge\\Application\\msedge.exe`,
  74. );
  75. }
  76. }
  77. for (const p of candidates) {
  78. if (existsSync(p)) return p;
  79. }
  80. return undefined;
  81. }
  82. // ── userDataDir 相关 ──
  83. const GLOBAL_WJZ_DATA_DIR = join(homedir(), '.wjz_browser_data');
  84. function getDefaultBrowserDataDir() {
  85. const os = platform();
  86. const home = homedir();
  87. const candidates = [];
  88. if (os === 'win32') {
  89. const localAppData = process.env.LOCALAPPDATA || join(home, 'AppData', 'Local');
  90. candidates.push(
  91. join(localAppData, 'Google', 'Chrome', 'User Data'),
  92. join(localAppData, 'Microsoft', 'Edge', 'User Data'),
  93. join(localAppData, 'Chromium', 'User Data'),
  94. );
  95. } else if (os === 'darwin') {
  96. const lib = join(home, 'Library', 'Application Support');
  97. candidates.push(
  98. join(lib, 'Google', 'Chrome'),
  99. join(lib, 'Microsoft Edge'),
  100. join(lib, 'Chromium'),
  101. );
  102. } else {
  103. candidates.push(
  104. join(home, '.config', 'google-chrome'),
  105. join(home, '.config', 'microsoft-edge'),
  106. join(home, '.config', 'chromium'),
  107. );
  108. }
  109. for (const dir of candidates) {
  110. if (existsSync(dir)) return dir;
  111. }
  112. return undefined;
  113. }
  114. function cloneProfileFromDefault(sourceDir, targetDir) {
  115. console.log(`[engine] 首次运行,从浏览器默认数据克隆资产: ${sourceDir} → ${targetDir}`);
  116. const SKIP_NAMES = new Set([
  117. 'singletonlock', 'singletonsocket', 'singletoncookie', 'lockfile',
  118. 'cache', 'code cache', 'gpucache', 'dawncache', 'grshadercache',
  119. 'crashpadmetrics-active.pma', 'browsermetrics', 'browsermetrics-spare.pma',
  120. ]);
  121. const filterFunc = (src) => !SKIP_NAMES.has(basename(src).toLowerCase());
  122. try {
  123. cpSync(sourceDir, targetDir, { recursive: true, filter: filterFunc });
    • Warning: On first run, copies your whole Chrome/Edge profile (cookies, saved logins, session data) into ~/.wjz_browser_data. This is far more than a Douyin uploader needs. The copy is local, and no upload of it is shown.
    • Line 142 on GitHub
  124. console.log('[engine] 克隆完成');
  125. } catch (err) {
  126. console.warn(`[engine] ⚠ 克隆出错(浏览器仍可启动,但需重新登录): ${err.message}`);
  127. }
  128. }
  129. function resolveUserDataDir() {
  130. if (config.browserUserDataDir) return config.browserUserDataDir;
  131. if (existsSync(GLOBAL_WJZ_DATA_DIR)) return GLOBAL_WJZ_DATA_DIR;
  132. mkdirSync(GLOBAL_WJZ_DATA_DIR, { recursive: true });
  133. const defaultDir = getDefaultBrowserDataDir();
  134. if (defaultDir) {
  135. cloneProfileFromDefault(defaultDir, GLOBAL_WJZ_DATA_DIR);
  136. }
  137. return GLOBAL_WJZ_DATA_DIR;
  138. }
  139. // ── 启动参数 ──
  140. const BROWSER_ARGS = [
  141. '--no-first-run',
  142. '--disable-default-apps',
  143. '--disable-popup-blocking',
  144. '--disable-gpu',
  145. '--disable-software-rasterizer',
  146. '--disable-dev-shm-usage',
  147. ...(platform() === 'linux'
  148. ? ['--no-sandbox', '--disable-setuid-sandbox']
  149. : []),
  150. '--disable-background-networking',
  151. '--disable-background-timer-throttling',
  152. '--disable-backgrounding-occluded-windows',
  153. '--disable-renderer-backgrounding',
  154. '--disable-features=Translate',
  155. '--no-default-browser-check',
  156. '--disable-crash-reporter',
  157. '--hide-crash-restore-bubble',
  158. '--test-type',
  159. '--safebrowsing-disable-download-protection',
  160. '--safebrowsing-disable-extension-blacklist',
  161. ];
  162. function isPortAlive(port, host = '127.0.0.1', timeout = 1500) {
  163. return new Promise((resolve) => {
  164. const socket = createConnection({ host, port });
  165. const timer = setTimeout(() => { socket.destroy(); resolve(false); }, timeout);
  166. socket.on('connect', () => { clearTimeout(timer); socket.destroy(); resolve(true); });
  167. socket.on('error', () => { clearTimeout(timer); resolve(false); });
  168. });
  169. }
  170. // ── 公开 API ──
  171. export function getBrowser() {
  172. return _browser;
  173. }
  174. export async function ensureBrowserForDaemon() {
  175. const port = config.browserDebugPort;
  176. if (_browser && _browser.isConnected()) {
  177. return _browser;
  178. }
  179. const alive = await isPortAlive(port);
  180. if (alive) {
  181. try {
  182. _browser = await puppeteer.connect({
  183. browserURL: `http://127.0.0.1:${port}`,
  184. defaultViewport: null,
  185. protocolTimeout: config.browserProtocolTimeout,
  186. });
  187. registerDisconnectHandler(_browser);
  188. console.log(`[engine] 已连接到端口 ${port} 的浏览器`);
  189. return _browser;
  190. } catch (err) {
  191. console.warn(`[engine] 连接失败: ${err.message},将尝试启动`);
  192. }
  193. }
  194. const executablePath = config.browserPath || detectBrowser();
  195. if (!executablePath) {
  196. throw new Error(
  197. `[engine] 未找到可用浏览器。请设置 BROWSER_PATH 或安装 Chrome/Edge。`
  198. );
  199. }
  200. const userDataDir = resolveUserDataDir();
  201. _browser = await puppeteer.launch({
  202. executablePath,
  203. headless: config.browserHeadless,
  204. userDataDir,
  205. defaultViewport: null,
  206. args: [...BROWSER_ARGS, `--remote-debugging-port=${port}`],
    • Warning: Launches the browser holding the copied profile with a remote-debugging port open on this machine, so any local program can drive a browser signed in to the user's sites. It also turns off Safe Browsing's download protection.
    • Line 238 on GitHub
  207. ignoreDefaultArgs: ['--enable-automation'],
  208. protocolTimeout: config.browserProtocolTimeout,
  209. handleSIGINT: false,
  210. handleSIGTERM: false,
  211. handleSIGHUP: false,
  212. });
  213. const pid = _browser.process()?.pid;
  214. registerDisconnectHandler(_browser);
  215. console.log(`[engine] 浏览器已启动 pid=${pid} port=${port} path=${executablePath}`);
  216. return _browser;
  217. }
  218. export async function terminateBrowser() {
  219. if (!_browser) return;
  220. _shuttingDown = true;
  221. try {
  222. const pid = _browser.process()?.pid;
  223. await _browser.close();
  224. console.log(`[engine] 浏览器已终止 pid=${pid || 'N/A'}`);
  225. } catch (err) {
  226. console.warn(`[engine] 终止浏览器时出错: ${err.message}`);
  227. try {
  228. _browser.process()?.kill('SIGKILL');
  229. } catch { /* ignore */ }
  230. } finally {
  231. _browser = null;
  232. _shuttingDown = false;
  233. }
  234. }

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.