Skip to content

fix: 小红书插件采集优化与Bug修复 (v2.5.3)#38

Open
shaocc1234 wants to merge 6 commits into
Jamailar:mainfrom
shaocc1234:fix/xhs-v2.5.3
Open

fix: 小红书插件采集优化与Bug修复 (v2.5.3)#38
shaocc1234 wants to merge 6 commits into
Jamailar:mainfrom
shaocc1234:fix/xhs-v2.5.3

Conversation

@shaocc1234

Copy link
Copy Markdown
Contributor

修改文件 (6 files)

文件 说明
Plugin/src/background.js 核心修复:括号匹配、作用域、去重缓存、服务端查重接口、进度文本优化
Plugin/src/sidepanel.js UI修复:任务状态判断、采集完成显示、上限提升到9999
Plugin/src/sidepanel.html 上限从200改为9999
Plugin/src/manifest.json 版本号 2.5.1 → 2.5.3
Plugin/package.json 版本号 2.5.2 → 2.5.3
Plugin/docs/Beav服务端-笔记批量去重接口需求.md 新增服务端批量查重接口约定文档

修复清单

Bug 修复

  1. readFeedFromStore 括号缺失 — 修复 content-script 函数括号匹配错误,解决 postAccountPostsBatch/is not defined
  2. 任务完成后 UI 仍显示"执行中" — sidepanel 增加 status === 'running' 判断
  3. accountBatch 作用域错误 — const → let 提升到函数作用域
  4. 单条保存 await 缺失 — markCollectedXhsBloggerNoteFromPayload 缺少 await

功能优化

  1. 采集上限 200 → 9999
  2. 进度文本去重 — 移除循环中冗余 X/N,避免进度条与任务队列显示不一致
  3. 跳过提示优化 — 循环内不再重复显示"已跳过 N"

新增

  1. 全局去重缓存 — 跨博主共享 noteId 缓存
  2. 服务端查重接口(插件端) — POST /api/knowledge/entries/check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant