From 10ef109353c0034b767e1aa61849ce76a36ab34e Mon Sep 17 00:00:00 2001 From: douboer Date: Fri, 10 Oct 2025 22:21:06 +0800 Subject: [PATCH] update at 2025-10-10 22:21:06 --- todolist.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/todolist.md b/todolist.md index 2ae49af..57acb9a 100644 --- a/todolist.md +++ b/todolist.md @@ -56,8 +56,18 @@ - 点击"全部页切图",把所有html页面转为png图片,图片保存路径和命名按此前设置。 ✅ -3. 整合xhs登陆和发布功能。![登录项目](https://biboer.cn/gitea/gavin/xhslogin/src/branch/main/README.md) - - +3. 目前xhs模式发布功能未实现,因为没有登录。 + 整合xhs登陆和发布功能。![登录项目](https://biboer.cn/gitea/gavin/xhslogin/src/branch/main/README.md) + - 在“用户配置”tab中增加“小红书用户名”配置项,默认13357108011。(⚠️ **后续可能需要维护多账号**) + - xhslogin项目,XHS_PHONE=13357108011 XHS_AUTO_CLOSE=1 npm run publish -- --title "恢复功能测试" --content "验证恢复核心功能后保留优化的代码" --images "/Users/gavin/myweb/static/img/ibook笔记.png" --visibility private --collection 自嗨 --timestamp + 其中: + - 参数XHS_PHONE为“小红书用户名”配置项。 + - title取markdown文章的title + - content取markdown文章frontmatter中的description信息,如果没有description或内容为空,取markdown正文前2段(段以空行隔离,不超过300字[n];段1+段2>n,取段1;段1+段2+段3>n,取段1段2 ……) + - images取小红书切图结果,按文章次序。 + - visibility在小红书模式下,预览页的工具栏中增加"公开"checkbox,默认为不选,即private。 + - collection在小红书模式下,预览页的工具栏中增加下拉框选择,下拉框内容从登录小红书自动获取。 + - timestamp是调试使用,默认使用 ## 问题 1. "发布平台"首次选“小红书”时,预览页面没有加载当前文章。