Compare commits

...

4 Commits

Author SHA1 Message Date
Ubuntu 3f396ed32a a 2026-09-20 14:31:01 +08:00
Ubuntu d81924b13b Auto backup \2026-\04-\20 2026-09-17 16:00:02 +08:00
Ubuntu 54f4d9065c Auto backup \2026-\04-\20 2026-09-12 16:00:02 +08:00
Ubuntu 1d974536e4 Auto backup \2026-\04-\20 2026-08-30 16:00:01 +08:00
21 changed files with 17 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 949 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 949 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

+17
View File
@@ -326,3 +326,20 @@ python3 baoyu_with_image_gen.py markdown /home/ubuntu/test_ai_images.md --genera
- **文章管理**:http://129.211.173.87:8888/admin/posts - **文章管理**:http://129.211.173.87:8888/admin/posts
- **默认账号**:`admin` / `abcd1234` - **默认账号**:`admin` / `abcd1234`
- **图片管理**:http://129.211.173.87:8888/admin/images - **图片管理**:http://129.211.173.87:8888/admin/images
---
## 🧩 仅创建草稿(不同步博客)
适用场景:用户要求「发公众号文章」但**不要写入个人博客**时。
`baoyu_optimized.py` 默认会调用 `blog_sync` 并调用微信 `freepublish/submit` 群发接口,直接跑会同时写博客并触发群发。仅草稿路径需:
1. 屏蔽 `blog_sync`(置空 / 不导入)
2. 覆写 `submit_draft_for_publish` 为 no-op,避免误触发群发
3. 包装脚本:`/home/ubuntu/.nanobot2/workspace/tmp/run_baoyu_draft.py`(读取文章 Markdown,屏蔽博客同步后只创建公众号草稿)
### 已知坑
- 脚本内 HTTP 调用默认无超时,网络挂住会卡死整个进程:用 `timeout=30` 包住请求,并加 `socket.setdefaulttimeout(30)`。
- 自动生成的 digest 会重复文章标题,发布前在微信后台手动改掉摘要。
- 仍然不要修改 `baoyu_publish.py`,也不要手写 Markdown→HTML 转换。