fix(qzone): route feeds3_html_more through proxy + pin JSONP format

Adversarial review of the get_qzone_feeds slice (verdict NEEDS-FIXES):
- Host: hit ic2.qzone.qq.com directly, bypassing the proxy gateway that
  slice-1/group-album use. The qzone.qq.com cookie jar only authenticates
  against the proxy origin, so the direct call would fail referer/origin.
  Now routed through h5.qzone.qq.com/proxy/domain/ic2.qzone.qq.com/...
- Format: requested format=json but the test fed a JSONP body, so the
  requested format was never pinned. Aligned to slice-1's
  format=jsonp + callback=_preloadCallback; the test now asserts format.
- Pagination: documented honestly that page_num is reliable only for the
  first page (deep paging needs a time cursor, deferred) — in the
  docstring and the action summary/param desc.
- Clarified the key/feedskey fallback is the per-feed handle, not a cursor.
This commit is contained in:
DrSmoothl committed 2026-06-20 01:36:04 +08:00
1 parent 094dc12f0c
commit 5164ba9e39
4 files changed
+35 -14

No files matched your search

+2 -2
View File
@@ -32,9 +32,9 @@ export const actions = [
defineAction({
name: 'get_qzone_feeds',
readOnly: true,
summary: '获取 QQ 空间好友动态(feed)',
summary: '获取 QQ 空间好友动态(feed);page_num 仅首页可靠,深翻页需时间游标(暂未实现)',
params: {
page_num: f.int({ min: 1 }).describe('页码(1 起)').default(1),
page_num: f.int({ min: 1 }).describe('页码(1 起;仅首页可靠)').default(1),
count: f.int({ min: 1, max: 50 }).describe('本页数量').default(10),
},
run: async (p, ctx) => {