Compare commits
4 Commits
920b299af2
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f396ed32a | |||
| d81924b13b | |||
| 54f4d9065c | |||
| 1d974536e4 |
|
After Width: | Height: | Size: 949 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 949 KiB |
|
After Width: | Height: | Size: 6.1 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
After Width: | Height: | Size: 224 KiB |
|
After Width: | Height: | Size: 196 KiB |
|
After Width: | Height: | Size: 4.1 KiB |
|
After Width: | Height: | Size: 7.5 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 38 KiB |
@@ -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 转换。
|
||||||
|
|||||||