Files
MemRelay/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/App 与桌面端接口头和参数差异.md
T
memrelay 52f42483be create: App 与桌面端接口头和参数差异
MemRelay-Operation: memory-save:rapt-api-capture-compare-20260927
MemRelay-Resource: 3d3bfecf-f204-4197-a9b0-082856e7102c
2026-09-27 07:16:27 +08:00

29 lines
1.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: App 与桌面端接口头和参数差异
type: fact
permalink: main/projects/280dd2a0-d23d-4a71-91e1-dce4353163be/app-与桌面端接口头和参数差异
stable_id: 3d3bfecf-f204-4197-a9b0-082856e7102c
scope: project
memory_type: fact
project_id: 280dd2a0-d23d-4a71-91e1-dce4353163be
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: rapt-api-capture-compare-20260927
created_at: '2026-09-26T23:16:24.440739+00:00'
updated_at: '2026-09-26T23:16:24.440739+00:00'
tags:
- api
- capture
---
2026-09-27 在模拟器 emulator-5556 上对照了正在运行的 App 和桌面端。登录后的请求都带相同的设备头和 apasstk。App 多一个头 http_accept_language_custom,值是语言的小写形式。
差异在参数而不是头:
- 分类剧目是 GET /app/open/classify_video?type=&page=,没有 limit。桌面端是 POST JSON,带 page、limit、type。
- 新片和热门都是 GET /app/open/orgin,分别带 class=new_releases 和 class=trending_now。桌面端调用时没有 class。
- App 底部推薦页是 GET /app/open/foryou?page=1。这次没有出现 POST /app/open/recommend。
- 分集是 POST /app/video/playlistv2,正文 {vid, page, before},第一页 before=1,后续页 before=0。与桌面端一致。这次没有调用不带 v2 的 playlist。
- getUserInfo 是 POST,App 正文为空,桌面端发 {} 。
v2 和不带 v2 可以共用这套头。抓包用的临时证书和转发已经清掉,并重启了模拟器框架。不要把 token 写进记忆。