13 Commits

Author SHA1 Message Date
wxs
c0a531fd1d 修复缺失字段 2026-03-16 12:15:51 +08:00
wxs
e494f32b14 fix(pugongying): 修复小红书短链接解析失败的问题
xhslink.com 短链接对 HEAD 请求返回 404,且重定向 URL 在 HTML body
的 href 中而非 HTTP 302 header。改用 GET 请求并从响应体中解析真实 URL。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:52:26 +08:00
wxs
99d16f1f70 feat(pugongying): 支持小红书短链接输入
通过 GM_xmlhttpRequest HEAD 请求跟踪短链接重定向,
从 finalUrl 中提取达人 ID。支持 xhslink.com 域名。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 23:46:06 +08:00
wxs
465e1f7746 fix(pugongying): 使用 GM_xmlhttpRequest 解决跨域请求 CORS 问题
对代理 API 请求改用 GM_xmlhttpRequest 绕过浏览器 CORS 限制,
蒲公英官方 API 仍使用原生 fetch(同源无需跨域)。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 21:04:53 +08:00
wxs
1c21be5e77 fix(pugongying): 为代理接口请求添加 API Key 认证
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:54:05 +08:00
wxs
ad10b171e9 feat(pugongying): 接入 data_summary 和 fans_summary 代理接口
通过中间 API 新增 dataSummary 和 fansSummary 两个补充端点,
自动获取浏览器 cookie 并通过 X-Cookie header 传递。

新增字段映射:
- 数据概览:外溢进店中位数、预估CPM、预估阅读单价、粉丝量变化幅度
- 粉丝概览:活跃/阅读/互动粉丝占比

前端字段选择器新增"数据概览"分组。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:31:24 +08:00
wxs
0875e20a89 feat(pugongying): 将粉丝年龄分布拆分为独立列导出
将 fansProfile.ages 从单个汇总字段拆分为 5 个独立年龄段列
(<18、18-24、25-34、35-44、>44),每列对应该年龄段的粉丝占比。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:54:08 +08:00
wxs
33d6aeb495 style(pugongying): 增大字段分组标题字号
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:34:26 +08:00
wxs
cce8f22e0f feat(pugongying): 将可选字段分为"达人信息"和"粉丝画像"两组
在字段选择下拉列表中添加分组标题,将字段按"达人信息"和"粉丝画像"
两部分展示,搜索过滤时自动隐藏无匹配项的分组标题。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:28:37 +08:00
wxs
572ff95aa9 refactor(pugongying): 删除不稳定接口和无关文件
删除了对 data_summary 和 fans_summary 这两个不稳定接口的请求,
同时删除了这两个接口对应的字段映射。另外删除了与脚本无关的
package.json、核心模块源码和测试文件。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:18:03 +08:00
wxs
358cb76c84 优化蒲公英项目达人并行请求逻辑 2026-03-13 13:23:04 +08:00
wxs
2a598d65fc feat(pugongying): export xlsx via sheetjs 2026-03-13 13:08:30 +08:00
wxs
2ddd4bb5ca feat(pugongying): add export userscript 2026-03-13 12:14:36 +08:00