feat(douyin): 支持终端交互输入短信验证码

This commit is contained in:
anzhen9
2026-07-11 17:18:13 +08:00
parent be77aaef8b
commit 395c6434bb
4 changed files with 70 additions and 33 deletions
+7
View File
@@ -52,6 +52,13 @@ sau douyin upload-video --account <account_name> --file videos/demo.mp4 --title
sau douyin upload-note --account <account_name> --images videos/1.png videos/2.png --title "图文标题" --note "图文示例" --tags 图文,测试
```
抖音短信验证码补充说明:
- 视频发布过程中如果触发短信二次验证,CLI 会优先读取项目根目录下的 `verify_code.txt`
- 如果未找到 `verify_code.txt`,并且当前命令是在交互式终端中手动运行,CLI 会直接在终端提示输入验证码
- 对 agent、自动任务、远程桥接这类场景,仍然可以继续用写入 `verify_code.txt` 的方式喂验证码
- 验证通过后,程序会自动清理 `verify_code.txt`
## 快手 CLI 子命令
```bash
+7
View File
@@ -112,6 +112,13 @@ sau douyin upload-note --account <account_name> --images videos/demo1.png videos
sau douyin upload-note --account <account_name> --images videos/demo1.png videos/demo2.png --title "图文标题" --note $noteText --tags 'tag1,tag2' --bgm '音乐名称'
```
抖音短信验证码补充说明:
- 视频发布过程中如果触发短信二次验证,程序会优先读取项目根目录下的 `verify_code.txt`
- 如果当前是你手动运行的交互式终端,没提供 `verify_code.txt` 时,CLI 会直接提示你在终端输入验证码
- 如果是 agent 或自动化桥接场景,仍然可以继续通过写入 `verify_code.txt` 来提供验证码
- 验证通过后,程序会自动删除 `verify_code.txt`
抖音卡login手动获取cookie:
- 目标服务器使用vnc