diff --git a/AGENTS.md b/AGENTS.md index 50ae4f4..0a1428a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -140,3 +140,11 @@ Swift · UIKit · SnapKit(代码布局,约束写在 `setupUI()` / `setupCons - 连接/订阅/心跳异常时串行 HTTP 兜底,默认 5 秒、后端提示限制 2~30 秒;Socket 退避重连并重新取票。仅拍摄中连续 120 秒没有有效包时主动核对,不能用 5 秒静默判断断线。 - 按任务身份、execution_batch、state_version 校验 HTTP/WS,离页/后台停止;旧数据显示到新快照返回。订阅无权限停止两条读取通道,票据 100098 仅换票。 - 本轮明确使用模拟器及隔离替身验证,不创建真实任务、不调用真实飞控或图传;不改变 Debug 拦截及 Release 由用户自行测试的权限。 + +## 简洁控制台 JSON(2026-11-03 最新用户要求) + +- 用户要求控制台只显示请求路径、入参和返回 JSON。本节覆盖旧模块标签、session/entry/part、Header 和页面/RTC 事件输出约定。 +- 请求输出 `path`、`params`;响应输出相同路径和参数以及 `response`(后端完整原始 JSON)。不再附加方法、域名、耗时、版本、关联 ID 或响应头。 +- 业务错误只保留原始回包;无后端响应的网络失败、取消及本地拦截在 `response.local_error` 明确表示。非 JSON 文本用 JSON 字符串,文件二进制仅显示元信息。 +- WebSocket 路径使用 `/wss`,订阅和推送同样按简洁格式;页面、心跳、解析及 RTC 事件不再输出到控制台。入参/回包原值及既有接口正文开关保持不变。 +- Debug/Release 均支持;Xcode 附加时完整写入控制台,独立运行时保留系统日志。仅改变诊断输出,不改变业务、鉴权和禁飞保护。 diff --git a/docs/9.9.1/Release机巢日志与轮询-2026-11-02.md b/docs/9.9.1/Release机巢日志与轮询-2026-11-02.md index 6b0c508..8c3c8fd 100644 --- a/docs/9.9.1/Release机巢日志与轮询-2026-11-02.md +++ b/docs/9.9.1/Release机巢日志与轮询-2026-11-02.md @@ -1,35 +1,38 @@ # Release 机巢日志与 shooting 轮询 -日期:2026-11-02。以下为客户端实现说明,模拟结果不代表真实设备已执行。 +更新日期:2026-11-03。当前控制台格式以本页为准,覆盖旧模块标签和诊断信封。文档示例为模拟数据。 -## 收集真机日志 +## 收集日志 -1. 将安装本次 Release 包的 iPhone 连接 Mac,解锁并信任电脑。 -2. 打开 macOS「控制台」,在设备列表选择这台 iPhone,开始实时流式传输。 -3. 搜索 `【机巢工作台-`,请求和响应分别以 `【机巢工作台-Request】`、`【机巢工作台-Response】` 开头;空境库搜索 `【景区空境库-`。系统日志 subsystem 为 `com.yuanzhixiang.suixinkan`,此通路 category 仍为 `DroneDock`。先开始收集,再在 App 操作。 -4. 将从进入准备页到异常出现后的日志完整复制为 txt 发回,同时附操作时间、订单号、页面现象。通过 Xcode 启动时也可在调试控制台筛选同一标签。 +通过 Xcode 有线或无线 Run/Attach 后,Debug、Release 都会在调试控制台输出完整缩进 JSON;代码没有 `#if DEBUG` 输出限制。按接口路径(例如 `/api/app/airport/shooting` 或 `/wss`)查找即可。长内容一次写入,避免分段标识打断 JSON;多个请求不会在同一段内互相穿插。 -使用 `Logger.notice`,代码不受 `#if DEBUG` 限制;不依赖 `print` 或调试器连接。App 未连接电脑时,系统日志是否仍可导出由 iOS 日志保留策略决定,本次没有新增 App 内文件导出功能。 +脱离 Xcode 独立运行时仍写入系统日志,可在 macOS「控制台」选择已连接手机、开始流式传输后查看;为避免系统单条日志长度截断,长内容仍分段,但不附加 session/entry/part。iOS 日志保留时长由系统决定,没有新增 App 内日志文件。 -## 日志字段 +## 当前格式 -- 当前范围:`/api/app/airport/*`、`/api/yf-handset-app/photog/multi-plane/*`、`/api/app/scenic-media/*` 和共用的 `/api/app/config/get-sts-token`。覆盖首页、订单、今日统计、收款套餐/付款码/记录、准备与飞行任务、订单素材、云端交付、游客确认和景区空境库。 -- Debug 和 Release 均记录每一次实际请求及响应,包括相同内容的轮询。JSON 按原值完整分段,不做字段摘要、采样、去重或长度截断;接口关闭普通正文日志也不会屏蔽机巢的完整诊断。 -- 外层 `session`:本次 App 进程;`entry`:一条事件;`part=1/N`:按 UTF-8 字节分段的序号。收集所有分段,JSON 才完整。 -- 最新控制台标签统一为 `【模块-类型】`,每个分段重复携带标签。`Request` 为请求,`Response` 为实际返回,`Failure` 为失败/业务拒绝,`Cancelled` 为取消,`Blocked` 为本地阻断,`Event` 为页面、解析和 RTC 等事件。历史 `[API]`、`[DroneDock]` 前缀不再输出。 -- 模块按接口路径识别:机场和 multi-plane 为“机巢工作台”,scenic-media 为“景区空境库”,STS 为“文件上传”;成片文件上传为“成片上传”,素材文件下载为“素材下载”。其余已知接口对应“订单”“钱包”“账号登录”等模块,未知路径使用“通用接口”。 -- HTTP 事件:`request_id` 关联同一次请求的开始/回包/解析;`elapsed_ms` 是累计耗时;`host` 区分生产与测试环境;`source` 为 `network` 或 `local_simulation`;`build` 与 `flight_blocked/live_blocked` 显示构建和拦截策略。 -- 参数/回包:`method/url/path/query/request_headers/body/http_status/response_headers`,保留任务 ID、订单号、点位、航线、状态、门禁、业务码与错误说明。 -- `request.blocked` + `sent=false` 表示本机阻止请求,未发给后端。`response.decoded` 只表示 HTTP/业务解包成功。`*.receipt_accepted` 只表示同任务回执验证通过,均不代表无人机已经执行;实际阶段看 `shooting.snapshot_applied` 及后端状态。 -- 页面与流程:确认按钮、跳转任务页、状态刷新、下一次轮询时间、离页/前后台、开拍/控制/重召唤结果待核对。 -- 图传:手动请求、参数是否可用、进房返回码、订阅返回码、首帧、错误、过期与停止。不会记录 SDK 的原始 extraInfo。 -- 文件传输:成片 OSS 上传使用 `file_upload.*`,订单素材和空境素材下载使用 `file_download.*`;记录请求方法、完整地址、对象键、请求关联、耗时、字节数、HTTP 状态、响应头、失败或取消。视频/图片二进制不写入日志,OSS 回调 JSON 如有返回也会原样记录。 +请求发出时先输出 `path` 和 `params`,响应到达时输出对应入参及完整 `response`,例: -按用户最新要求取消机巢控制台脱敏:请求头、Token、签名、STS 临时凭证、RTC 播放串、媒体 URL、手机号和设备序列号均按接口原值输出,不再替换为 ``。非 JSON 的文本错误页也完整输出,二进制仅记录大小。日志不改变业务请求/响应。测试及文档示例仍使用虚构数据,不写入真实凭证。 +```json +{ + "path": "/api/app/airport/shooting", + "params": { + "id": "501", + "live_battery": "0" + }, + "response": { + "code": 100000, + "data": { "ui": { "phase": "shooting" } }, + "msg": "success" + } +} +``` -## 其他模块的 Release 日志 - -后续用户要求其他模块接口也在 Release 打印。统一 `APIClient` 的普通请求、裸 JSON 和 multipart 文件上传入口均移除 Debug 编译限制,默认通过系统日志 category `API` 输出。最新按业务模块筛选,例如 `【订单-Request】`、`【订单-Response】`、`【钱包-Response】`;可查看请求方法、完整地址、查询参数、请求头、请求体、HTTP 状态、响应头和响应正文,以及失败/取消事件。长文本按 `entry/part` 完整分段,multipart 文件字节只记大小。保留接口显式的正文日志选项,不改变鉴权、错误处理或设备操作保护。 +- GET 查询参数与 POST JSON 均转为 JSON 展示。请求同时有 query/body 时,分别放在 `params.query`、`params.body`,避免同名参数覆盖;重复 query 值保留为数组。 +- 保留后端完整 Envelope(含 `code/data/msg/time` 等实际字段),不把正文变成转义 JSON 字符串。业务失败也只打印一次回包。 +- 请求 Header、域名、方法、HTTP 状态、耗时、版本、session/entry/part 及 Request/Response 模块前缀不再输出。页面、心跳、解析、RTC 等事件不进入控制台;系统自带的日志元数据不由 App 控制。 +- 没有后端响应时使用 `response.local_error` 显示本地网络失败、取消或拦截,不能将其当成后端回包。 +- 非 JSON 文本按 JSON 字符串保留,视频/图片只输出字节数等元信息;不会打印文件字节。原有显式关闭正文或脱敏的接口设置继续生效;机巢原始参数/回包仍完整保留。 +- WebSocket 使用真实路径 `/wss`,请求 `params` 为订阅 JSON,响应按当前任务 `id` 关联,`response` 为原始 ack 或完整推送。不会额外打印心跳与重连状态事件。 ## 本次授权范围 @@ -39,6 +42,8 @@ Debug 网络保护与 RTC 初始化前保护不变。代理不会调用真实创 ## shooting 轮询 +当前任务页优先 WebSocket,下列间隔用于异常时 HTTP 兜底;进页、回前台和手动刷新仍读一次,详见工程根目录 WebSocket 接入文档。 + - 页面完整出现/可见时回前台立即 GET;随后上次 GET 结束后再等默认 5 秒。 - 使用后端 `plane_status.poll_hint_ms`,正数限制为 2~30 秒,无效/缺失回退 5 秒。 - 串行读取同一任务,不并发;手动刷新替换尚未开始的下一次计时。 @@ -48,6 +53,11 @@ Debug 网络保护与 RTC 初始化前保护不变。代理不会调用真实创 ## 验证 +- 2026-11-03 简洁 JSON 格式:两轮模拟器回归共覆盖 58 项不同测试,全部通过(首轮 47 项,最终 22 项含重复复验)。覆盖三种 HTTP 入口、机巢输出实际格式、WebSocket、长字符串/数组/null、重复 query、原始错误回包、正文开关、鉴权行为及 Debug 禁飞保护。 +- Release 无签名编译通过:`/private/tmp/suixinkan-simple-json-log-release-build.log`。没有安装/运行正式包,没有调用真实飞控或图传。 +- 模拟器结果包:`test_sim_2026-11-03T01-17-43-867Z_pid2672_a96854ad.xcresult`、`test_sim_2026-11-03T01-21-24-006Z_pid2672_3203bda7.xcresult`。 +- 以下为历史格式的验证记录,不代表当前控制台还输出旧标签或诊断信封。 + - 模块标签更新后:41 项相关模拟器测试通过,覆盖模块归属、每段标签、原值无损重组、三个网络入口、失败/取消以及禁飞保护。Release 无签名编译通过,日志:`/private/tmp/suixinkan-module-log-format-release-build.log`。 - 其他模块开放 Release 日志后:36 项相关模拟器测试通过,覆盖三种发送入口、完整大响应、错误/取消、登录状态及机巢日志与禁飞保护回归。Release 无签名编译通过,日志:`/private/tmp/suixinkan-global-api-logging-release-build.log`。 - 取消脱敏后:52 项相关模拟器测试通过,验证原始 Header、RTC/STS 参数、签名 URL、嵌套 JSON、文本错误页、长日志分段和原有飞控保护。Release 无签名编译通过,Debug/Release 离线策略脚本均通过。结果:`test_sim_2026-11-02T08-20-39-894Z_pid2672_0db869c5.xcresult`;构建日志:`/private/tmp/suixinkan-raw-api-logging-release-build.log`。 diff --git a/docs/9.9.1/materials-integration-2026-10-28/materials-all-real.jpg b/docs/9.9.1/materials-integration-2026-10-28/materials-all-real.jpg new file mode 100644 index 0000000..ba96971 Binary files /dev/null and b/docs/9.9.1/materials-integration-2026-10-28/materials-all-real.jpg differ diff --git a/docs/9.9.1/orders-integration-2026-10-28/orders-all-real.jpg b/docs/9.9.1/orders-integration-2026-10-28/orders-all-real.jpg new file mode 100644 index 0000000..a8f6de8 Binary files /dev/null and b/docs/9.9.1/orders-integration-2026-10-28/orders-all-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/date-filter-crash-fixed.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/date-filter-crash-fixed.jpg new file mode 100644 index 0000000..93472f7 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/date-filter-crash-fixed.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/date.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/date.json new file mode 100644 index 0000000..1a1fd9b --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/date.json @@ -0,0 +1,548 @@ +{ + "observed_at": "2026-10-30T11:10:27.421742+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 1, + "page_size": 20, + "retention_days": 90, + "date_from": "2026-10-24", + "date_to": "2026-10-30" + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 409, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1432, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 15:01:56", + "log_etime": "2026-10-28 15:10:23", + "sync_time": "2026-10-28 15:34:01", + "time_label": "10-28 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1431, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 13:01:56", + "log_etime": "2026-10-28 13:10:28", + "sync_time": "2026-10-28 13:29:43", + "time_label": "10-28 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1430, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 11:01:56", + "log_etime": "2026-10-28 11:10:28", + "sync_time": "2026-10-28 11:29:38", + "time_label": "10-28 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1429, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 09:01:56", + "log_etime": "2026-10-28 09:10:16", + "sync_time": "2026-10-28 09:29:28", + "time_label": "10-28 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1428, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 19:01:56", + "log_etime": "2026-10-27 19:10:22", + "sync_time": "2026-10-27 19:30:36", + "time_label": "10-27 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1427, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 17:01:56", + "log_etime": "2026-10-27 17:10:18", + "sync_time": "2026-10-27 17:31:12", + "time_label": "10-27 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1426, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 15:01:56", + "log_etime": "2026-10-26 15:10:15", + "sync_time": "2026-10-26 15:29:31", + "time_label": "10-26 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1425, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 13:01:56", + "log_etime": "2026-10-26 13:10:26", + "sync_time": "2026-10-26 13:29:29", + "time_label": "10-26 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1424, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 11:01:56", + "log_etime": "2026-10-26 11:10:19", + "sync_time": "2026-10-26 11:29:28", + "time_label": "10-26 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1423, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 09:01:56", + "log_etime": "2026-10-26 09:10:14", + "sync_time": "2026-10-26 09:29:37", + "time_label": "10-26 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1422, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 19:01:56", + "log_etime": "2026-10-25 19:10:33", + "sync_time": "2026-10-25 19:29:37", + "time_label": "10-25 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1421, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 17:01:56", + "log_etime": "2026-10-25 17:10:18", + "sync_time": "2026-10-25 17:29:31", + "time_label": "10-25 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1420, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 15:01:56", + "log_etime": "2026-10-25 15:10:24", + "sync_time": "2026-10-25 15:29:25", + "time_label": "10-25 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1419, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 19:01:56", + "log_etime": "2026-10-24 19:10:16", + "sync_time": "2026-10-24 19:29:31", + "time_label": "10-24 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1418, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 17:01:56", + "log_etime": "2026-10-24 17:10:10", + "sync_time": "2026-10-24 17:29:30", + "time_label": "10-24 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1417, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 15:01:56", + "log_etime": "2026-10-24 15:10:28", + "sync_time": "2026-10-24 15:29:24", + "time_label": "10-24 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 15:01:56", + "material_count": 8, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1432, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 15:01:56", + "log_etime": "2026-10-28 15:10:23", + "sync_time": "2026-10-28 15:34:01", + "time_label": "10-28 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1431, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 13:01:56", + "log_etime": "2026-10-28 13:10:28", + "sync_time": "2026-10-28 13:29:43", + "time_label": "10-28 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1430, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 11:01:56", + "log_etime": "2026-10-28 11:10:28", + "sync_time": "2026-10-28 11:29:38", + "time_label": "10-28 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1429, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 09:01:56", + "log_etime": "2026-10-28 09:10:16", + "sync_time": "2026-10-28 09:29:28", + "time_label": "10-28 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1428, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 19:01:56", + "log_etime": "2026-10-27 19:10:22", + "sync_time": "2026-10-27 19:30:36", + "time_label": "10-27 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1427, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 17:01:56", + "log_etime": "2026-10-27 17:10:18", + "sync_time": "2026-10-27 17:31:12", + "time_label": "10-27 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1426, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 15:01:56", + "log_etime": "2026-10-26 15:10:15", + "sync_time": "2026-10-26 15:29:31", + "time_label": "10-26 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1425, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 13:01:56", + "log_etime": "2026-10-26 13:10:26", + "sync_time": "2026-10-26 13:29:29", + "time_label": "10-26 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1424, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 11:01:56", + "log_etime": "2026-10-26 11:10:19", + "sync_time": "2026-10-26 11:29:28", + "time_label": "10-26 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1423, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 09:01:56", + "log_etime": "2026-10-26 09:10:14", + "sync_time": "2026-10-26 09:29:37", + "time_label": "10-26 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1422, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 19:01:56", + "log_etime": "2026-10-25 19:10:33", + "sync_time": "2026-10-25 19:29:37", + "time_label": "10-25 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1421, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 17:01:56", + "log_etime": "2026-10-25 17:10:18", + "sync_time": "2026-10-25 17:29:31", + "time_label": "10-25 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1420, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 15:01:56", + "log_etime": "2026-10-25 15:10:24", + "sync_time": "2026-10-25 15:29:25", + "time_label": "10-25 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1419, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 19:01:56", + "log_etime": "2026-10-24 19:10:16", + "sync_time": "2026-10-24 19:29:31", + "time_label": "10-24 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1418, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 17:01:56", + "log_etime": "2026-10-24 17:10:10", + "sync_time": "2026-10-24 17:29:30", + "time_label": "10-24 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1417, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 15:01:56", + "log_etime": "2026-10-24 15:10:28", + "sync_time": "2026-10-24 15:29:24", + "time_label": "10-24 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 15:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + } + ], + "total": 17, + "page": 1, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "2026-10-24", + "date_to": "2026-10-30" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:10:27" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/default.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/default.json new file mode 100644 index 0000000..90ba908 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/default.json @@ -0,0 +1,630 @@ +{ + "observed_at": "2026-10-30T11:10:13.527184+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 1, + "page_size": 20, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 429, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1432, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 15:01:56", + "log_etime": "2026-10-28 15:10:23", + "sync_time": "2026-10-28 15:34:01", + "time_label": "10-28 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1431, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 13:01:56", + "log_etime": "2026-10-28 13:10:28", + "sync_time": "2026-10-28 13:29:43", + "time_label": "10-28 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1430, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 11:01:56", + "log_etime": "2026-10-28 11:10:28", + "sync_time": "2026-10-28 11:29:38", + "time_label": "10-28 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1429, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 09:01:56", + "log_etime": "2026-10-28 09:10:16", + "sync_time": "2026-10-28 09:29:28", + "time_label": "10-28 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1428, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 19:01:56", + "log_etime": "2026-10-27 19:10:22", + "sync_time": "2026-10-27 19:30:36", + "time_label": "10-27 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1427, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 17:01:56", + "log_etime": "2026-10-27 17:10:18", + "sync_time": "2026-10-27 17:31:12", + "time_label": "10-27 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1426, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 15:01:56", + "log_etime": "2026-10-26 15:10:15", + "sync_time": "2026-10-26 15:29:31", + "time_label": "10-26 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1425, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 13:01:56", + "log_etime": "2026-10-26 13:10:26", + "sync_time": "2026-10-26 13:29:29", + "time_label": "10-26 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1424, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 11:01:56", + "log_etime": "2026-10-26 11:10:19", + "sync_time": "2026-10-26 11:29:28", + "time_label": "10-26 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1423, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 09:01:56", + "log_etime": "2026-10-26 09:10:14", + "sync_time": "2026-10-26 09:29:37", + "time_label": "10-26 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1422, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 19:01:56", + "log_etime": "2026-10-25 19:10:33", + "sync_time": "2026-10-25 19:29:37", + "time_label": "10-25 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1421, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 17:01:56", + "log_etime": "2026-10-25 17:10:18", + "sync_time": "2026-10-25 17:29:31", + "time_label": "10-25 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1420, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 15:01:56", + "log_etime": "2026-10-25 15:10:24", + "sync_time": "2026-10-25 15:29:25", + "time_label": "10-25 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1419, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 19:01:56", + "log_etime": "2026-10-24 19:10:16", + "sync_time": "2026-10-24 19:29:31", + "time_label": "10-24 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1418, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 17:01:56", + "log_etime": "2026-10-24 17:10:10", + "sync_time": "2026-10-24 17:29:30", + "time_label": "10-24 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1417, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 15:01:56", + "log_etime": "2026-10-24 15:10:28", + "sync_time": "2026-10-24 15:29:24", + "time_label": "10-24 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1416, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-22 19:01:56", + "log_etime": "2026-10-22 19:11:08", + "sync_time": "2026-10-22 19:30:08", + "time_label": "10-22 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-22 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1415, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 13:01:56", + "log_etime": "2026-10-17 13:11:26", + "sync_time": "2026-10-17 13:41:05", + "time_label": "10-17 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1414, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 11:01:56", + "log_etime": "2026-10-17 11:11:25", + "sync_time": "2026-10-17 11:29:42", + "time_label": "10-17 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1432, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 15:01:56", + "log_etime": "2026-10-28 15:10:23", + "sync_time": "2026-10-28 15:34:01", + "time_label": "10-28 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1431, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 13:01:56", + "log_etime": "2026-10-28 13:10:28", + "sync_time": "2026-10-28 13:29:43", + "time_label": "10-28 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1430, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 11:01:56", + "log_etime": "2026-10-28 11:10:28", + "sync_time": "2026-10-28 11:29:38", + "time_label": "10-28 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1429, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-28 09:01:56", + "log_etime": "2026-10-28 09:10:16", + "sync_time": "2026-10-28 09:29:28", + "time_label": "10-28 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-28 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1428, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 19:01:56", + "log_etime": "2026-10-27 19:10:22", + "sync_time": "2026-10-27 19:30:36", + "time_label": "10-27 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1427, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-27 17:01:56", + "log_etime": "2026-10-27 17:10:18", + "sync_time": "2026-10-27 17:31:12", + "time_label": "10-27 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-27 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1426, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 15:01:56", + "log_etime": "2026-10-26 15:10:15", + "sync_time": "2026-10-26 15:29:31", + "time_label": "10-26 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1425, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 13:01:56", + "log_etime": "2026-10-26 13:10:26", + "sync_time": "2026-10-26 13:29:29", + "time_label": "10-26 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1424, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 11:01:56", + "log_etime": "2026-10-26 11:10:19", + "sync_time": "2026-10-26 11:29:28", + "time_label": "10-26 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1423, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-26 09:01:56", + "log_etime": "2026-10-26 09:10:14", + "sync_time": "2026-10-26 09:29:37", + "time_label": "10-26 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-26 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1422, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 19:01:56", + "log_etime": "2026-10-25 19:10:33", + "sync_time": "2026-10-25 19:29:37", + "time_label": "10-25 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1421, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 17:01:56", + "log_etime": "2026-10-25 17:10:18", + "sync_time": "2026-10-25 17:29:31", + "time_label": "10-25 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1420, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-25 15:01:56", + "log_etime": "2026-10-25 15:10:24", + "sync_time": "2026-10-25 15:29:25", + "time_label": "10-25 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-25 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1419, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 19:01:56", + "log_etime": "2026-10-24 19:10:16", + "sync_time": "2026-10-24 19:29:31", + "time_label": "10-24 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1418, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 17:01:56", + "log_etime": "2026-10-24 17:10:10", + "sync_time": "2026-10-24 17:29:30", + "time_label": "10-24 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1417, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-24 15:01:56", + "log_etime": "2026-10-24 15:10:28", + "sync_time": "2026-10-24 15:29:24", + "time_label": "10-24 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-24 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1416, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-22 19:01:56", + "log_etime": "2026-10-22 19:11:08", + "sync_time": "2026-10-22 19:30:08", + "time_label": "10-22 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-22 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1415, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 13:01:56", + "log_etime": "2026-10-17 13:11:26", + "sync_time": "2026-10-17 13:41:05", + "time_label": "10-17 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1414, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 11:01:56", + "log_etime": "2026-10-17 11:11:25", + "sync_time": "2026-10-17 11:29:42", + "time_label": "10-17 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + } + ], + "total": 109, + "page": 1, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:10:13" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/detail1433.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/detail1433.json new file mode 100644 index 0000000..a4d4583 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/detail1433.json @@ -0,0 +1,176 @@ +{ + "observed_at": "2026-10-30T11:11:24.596696+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/session-detail", + "query": { + "scenic_media_id": 1433 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 303, + "response": { + "code": 100000, + "msg": "success", + "data": { + "session": { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "time_label": "10-29 11:01 · 8 段素材", + "group_select_label": "10-29 11:01 8 段素材" + }, + "materials": [ + { + "id": 5413, + "view_album_detail_id": 5413, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "01", + "file_label": "片段1", + "preview_label": "10-29 11:01片段1", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120552_0008_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120552_0008_V.jpg", + "size_bytes": 67541303296, + "download_times": 9, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5412, + "view_album_detail_id": 5412, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "02", + "file_label": "片段2", + "preview_label": "10-29 11:01片段2", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120517_0007_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120517_0007_V.jpg", + "size_bytes": 104956465152, + "download_times": 71, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5411, + "view_album_detail_id": 5411, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "03", + "file_label": "片段3", + "preview_label": "10-29 11:01片段3", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120422_0006_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120422_0006_V.jpg", + "size_bytes": 122252546048, + "download_times": 35, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5410, + "view_album_detail_id": 5410, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "04", + "file_label": "片段4", + "preview_label": "10-29 11:01片段4", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120350_0005_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120350_0005_V.jpg", + "size_bytes": 165236804608, + "download_times": 75, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5409, + "view_album_detail_id": 5409, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "05", + "file_label": "片段5", + "preview_label": "10-29 11:01片段5", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120311_0004_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120311_0004_V.jpg", + "size_bytes": 147552259072, + "download_times": 85, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5408, + "view_album_detail_id": 5408, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "06", + "file_label": "片段6", + "preview_label": "10-29 11:01片段6", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120224_0003_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120224_0003_V.jpg", + "size_bytes": 127153511424, + "download_times": 6, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5407, + "view_album_detail_id": 5407, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "07", + "file_label": "片段7", + "preview_label": "10-29 11:01片段7", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120138_0002_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120138_0002_V.jpg", + "size_bytes": 102819777536, + "download_times": 95, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5406, + "view_album_detail_id": 5406, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "08", + "file_label": "片段8", + "preview_label": "10-29 11:01片段8", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120129_0001_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120129_0001_V.jpg", + "size_bytes": 47900692480, + "download_times": 97, + "handpick": 2, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + } + ], + "material_count": 8 + }, + "time": "2026-10-30 11:11:24" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/library-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/library-real.jpg new file mode 100644 index 0000000..0477ca0 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/library-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/media-head.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/media-head.json new file mode 100644 index 0000000..f770760 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/media-head.json @@ -0,0 +1,8 @@ +{ + "material_id": 5413, + "api_size_bytes": 67541303296, + "http_status": 200, + "content_length": "65958304", + "content_type": "video/mp4", + "check": "HEAD only; no media downloaded" +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-detail1433.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-detail1433.json new file mode 100644 index 0000000..57b154e --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-detail1433.json @@ -0,0 +1,203 @@ +{ + "observed_at": "2026-10-30T11:49:18.311630+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/session-detail", + "query": { + "scenic_media_id": 1433 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 312, + "response": { + "code": 100000, + "msg": "success", + "data": { + "session": { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "duration_seconds": 477, + "duration": 477, + "duration_label": "7分57秒", + "time_label": "10-29 11:01 · 7分57秒 · 8 段素材", + "group_select_label": "10-29 11:01 7分57秒 8 段素材" + }, + "materials": [ + { + "id": 5406, + "view_album_detail_id": 5406, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "01", + "file_label": "片段1", + "preview_label": "10-29 11:01片段1", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120129_0001_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120129_0001_V.jpg", + "size_bytes": 46778020, + "duration_seconds": 9, + "duration": 9, + "duration_label": "9秒", + "download_times": 97, + "handpick": 2, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5407, + "view_album_detail_id": 5407, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "02", + "file_label": "片段2", + "preview_label": "10-29 11:01片段2", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120138_0002_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120138_0002_V.jpg", + "size_bytes": 100409939, + "duration_seconds": 46, + "duration": 46, + "duration_label": "46秒", + "download_times": 95, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5408, + "view_album_detail_id": 5408, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "03", + "file_label": "片段3", + "preview_label": "10-29 11:01片段3", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120224_0003_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120224_0003_V.jpg", + "size_bytes": 124173351, + "duration_seconds": 47, + "duration": 47, + "duration_label": "47秒", + "download_times": 6, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5409, + "view_album_detail_id": 5409, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "04", + "file_label": "片段4", + "preview_label": "10-29 11:01片段4", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120311_0004_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120311_0004_V.jpg", + "size_bytes": 144094003, + "duration_seconds": 39, + "duration": 39, + "duration_label": "39秒", + "download_times": 85, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5410, + "view_album_detail_id": 5410, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "05", + "file_label": "片段5", + "preview_label": "10-29 11:01片段5", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120350_0005_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120350_0005_V.jpg", + "size_bytes": 161364067, + "duration_seconds": 32, + "duration": 32, + "duration_label": "32秒", + "download_times": 75, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5411, + "view_album_detail_id": 5411, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "06", + "file_label": "片段6", + "preview_label": "10-29 11:01片段6", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120422_0006_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120422_0006_V.jpg", + "size_bytes": 119387252, + "duration_seconds": 55, + "duration": 55, + "duration_label": "55秒", + "download_times": 35, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5412, + "view_album_detail_id": 5412, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "07", + "file_label": "片段7", + "preview_label": "10-29 11:01片段7", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120517_0007_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120517_0007_V.jpg", + "size_bytes": 102496548, + "duration_seconds": 35, + "duration": 35, + "duration_label": "35秒", + "download_times": 71, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + }, + { + "id": 5413, + "view_album_detail_id": 5413, + "scenic_media_id": 1433, + "fly_plan_log_id": 3571, + "clip_no": "08", + "file_label": "片段8", + "preview_label": "10-29 11:01片段8", + "file_type": 2, + "oss_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120552_0008_V.mp4", + "cover_url": "https://capture-android-dev.oss-cn-shanghai.aliyuncs.com/fly-prod/260323/DJI_20260323120552_0008_V.jpg", + "size_bytes": 65958304, + "duration_seconds": 19004641, + "duration": 19004641, + "duration_label": "5279小时4分", + "download_times": 9, + "handpick": 1, + "selectable": true, + "downloadable": true, + "source": "fly_plan" + } + ], + "material_count": 8 + }, + "time": "2026-10-30 11:49:18" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-library.png b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-library.png new file mode 100644 index 0000000..9ebb0c7 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-library.png differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-preview.png b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-preview.png new file mode 100644 index 0000000..e4b199d Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-preview.png differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-size1.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-size1.json new file mode 100644 index 0000000..7065f59 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/metadata-updated-size1.json @@ -0,0 +1,98 @@ +{ + "observed_at": "2026-10-30T11:50:12.192899+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 1, + "page_size": 1, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 672, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "duration_seconds": 477, + "duration": 477, + "duration_label": "7分57秒", + "time_label": "10-29 11:01 · 7分57秒 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "duration_seconds": 477, + "duration": 477, + "duration_label": "7分57秒", + "time_label": "10-29 11:01 · 7分57秒 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + } + ], + "total": 108, + "page": 1, + "page_size": 1, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:50:11" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/page1-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page1-real.jpg new file mode 100644 index 0000000..0b9ff88 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page1-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2-real.jpg new file mode 100644 index 0000000..8abe56b Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2.json new file mode 100644 index 0000000..d995ce9 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page2.json @@ -0,0 +1,630 @@ +{ + "observed_at": "2026-10-30T11:10:28.562207+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 2, + "page_size": 20, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 371, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1413, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 09:01:56", + "log_etime": "2026-10-17 09:11:49", + "sync_time": "2026-10-17 09:29:37", + "time_label": "10-17 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1412, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 19:01:56", + "log_etime": "2026-10-14 19:10:22", + "sync_time": "2026-10-14 19:29:39", + "time_label": "10-14 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1411, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 17:01:56", + "log_etime": "2026-10-14 17:10:19", + "sync_time": "2026-10-14 17:29:42", + "time_label": "10-14 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1410, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 15:01:56", + "log_etime": "2026-10-14 15:10:20", + "sync_time": "2026-10-14 15:29:30", + "time_label": "10-14 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1409, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 13:01:56", + "log_etime": "2026-10-14 13:09:47", + "sync_time": "2026-10-14 13:22:46", + "time_label": "10-14 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1408, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 13:01:56", + "log_etime": "2026-10-13 13:10:02", + "sync_time": "2026-10-13 13:21:24", + "time_label": "10-13 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1407, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 11:01:56", + "log_etime": "2026-10-13 11:10:15", + "sync_time": "2026-10-13 11:21:08", + "time_label": "10-13 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1406, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 09:01:56", + "log_etime": "2026-10-13 09:10:19", + "sync_time": "2026-10-13 09:21:11", + "time_label": "10-13 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1405, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-11 17:01:56", + "log_etime": "2026-10-11 17:10:10", + "sync_time": "2026-10-11 17:29:32", + "time_label": "10-11 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-11 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1404, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-11 11:01:56", + "log_etime": "2026-10-11 11:10:31", + "sync_time": "2026-10-11 11:29:34", + "time_label": "10-11 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-11 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1403, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 15:01:56", + "log_etime": "2026-10-08 15:13:09", + "sync_time": "2026-10-08 15:29:41", + "time_label": "10-08 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1402, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 13:01:56", + "log_etime": "2026-10-08 13:10:26", + "sync_time": "2026-10-08 13:22:59", + "time_label": "10-08 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1401, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 11:01:56", + "log_etime": "2026-10-08 11:10:16", + "sync_time": "2026-10-08 11:29:33", + "time_label": "10-08 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1400, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 09:01:56", + "log_etime": "2026-10-08 09:10:14", + "sync_time": "2026-10-08 09:23:03", + "time_label": "10-08 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1399, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-04 19:01:56", + "log_etime": "2026-10-04 19:12:45", + "sync_time": "2026-10-04 19:29:42", + "time_label": "10-04 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-04 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1398, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-04 15:01:56", + "log_etime": "2026-10-04 15:11:21", + "sync_time": "2026-10-04 15:29:15", + "time_label": "10-04 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-04 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1397, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 19:01:56", + "log_etime": "2026-10-02 19:10:18", + "sync_time": "2026-10-02 19:29:28", + "time_label": "10-02 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1396, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 17:01:56", + "log_etime": "2026-10-02 17:10:18", + "sync_time": "2026-10-02 17:29:35", + "time_label": "10-02 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1395, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 15:01:56", + "log_etime": "2026-10-02 15:10:11", + "sync_time": "2026-10-02 15:29:37", + "time_label": "10-02 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1394, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 13:01:56", + "log_etime": "2026-10-02 13:10:06", + "sync_time": "2026-10-02 13:29:33", + "time_label": "10-02 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 13:01:56", + "material_count": 8, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1413, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-17 09:01:56", + "log_etime": "2026-10-17 09:11:49", + "sync_time": "2026-10-17 09:29:37", + "time_label": "10-17 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-17 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1412, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 19:01:56", + "log_etime": "2026-10-14 19:10:22", + "sync_time": "2026-10-14 19:29:39", + "time_label": "10-14 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1411, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 17:01:56", + "log_etime": "2026-10-14 17:10:19", + "sync_time": "2026-10-14 17:29:42", + "time_label": "10-14 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1410, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 15:01:56", + "log_etime": "2026-10-14 15:10:20", + "sync_time": "2026-10-14 15:29:30", + "time_label": "10-14 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1409, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-14 13:01:56", + "log_etime": "2026-10-14 13:09:47", + "sync_time": "2026-10-14 13:22:46", + "time_label": "10-14 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-14 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1408, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 13:01:56", + "log_etime": "2026-10-13 13:10:02", + "sync_time": "2026-10-13 13:21:24", + "time_label": "10-13 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1407, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 11:01:56", + "log_etime": "2026-10-13 11:10:15", + "sync_time": "2026-10-13 11:21:08", + "time_label": "10-13 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1406, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-13 09:01:56", + "log_etime": "2026-10-13 09:10:19", + "sync_time": "2026-10-13 09:21:11", + "time_label": "10-13 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-13 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1405, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-11 17:01:56", + "log_etime": "2026-10-11 17:10:10", + "sync_time": "2026-10-11 17:29:32", + "time_label": "10-11 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-11 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1404, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-11 11:01:56", + "log_etime": "2026-10-11 11:10:31", + "sync_time": "2026-10-11 11:29:34", + "time_label": "10-11 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-11 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1403, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 15:01:56", + "log_etime": "2026-10-08 15:13:09", + "sync_time": "2026-10-08 15:29:41", + "time_label": "10-08 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1402, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 13:01:56", + "log_etime": "2026-10-08 13:10:26", + "sync_time": "2026-10-08 13:22:59", + "time_label": "10-08 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1401, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 11:01:56", + "log_etime": "2026-10-08 11:10:16", + "sync_time": "2026-10-08 11:29:33", + "time_label": "10-08 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1400, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-08 09:01:56", + "log_etime": "2026-10-08 09:10:14", + "sync_time": "2026-10-08 09:23:03", + "time_label": "10-08 09:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-08 09:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1399, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-04 19:01:56", + "log_etime": "2026-10-04 19:12:45", + "sync_time": "2026-10-04 19:29:42", + "time_label": "10-04 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-04 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1398, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-04 15:01:56", + "log_etime": "2026-10-04 15:11:21", + "sync_time": "2026-10-04 15:29:15", + "time_label": "10-04 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-04 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1397, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 19:01:56", + "log_etime": "2026-10-02 19:10:18", + "sync_time": "2026-10-02 19:29:28", + "time_label": "10-02 19:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 19:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1396, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 17:01:56", + "log_etime": "2026-10-02 17:10:18", + "sync_time": "2026-10-02 17:29:35", + "time_label": "10-02 17:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 17:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1395, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 15:01:56", + "log_etime": "2026-10-02 15:10:11", + "sync_time": "2026-10-02 15:29:37", + "time_label": "10-02 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1394, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-02 13:01:56", + "log_etime": "2026-10-02 13:10:06", + "sync_time": "2026-10-02 13:29:33", + "time_label": "10-02 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-02 13:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + } + ], + "total": 109, + "page": 2, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:10:28" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/page6.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page6.json new file mode 100644 index 0000000..ceb1bde --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page6.json @@ -0,0 +1,343 @@ +{ + "observed_at": "2026-10-30T11:29:17.845930+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 6, + "page_size": 20, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 334, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1333, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-06 11:01:56", + "log_etime": "2026-08-06 11:10:19", + "sync_time": "2026-08-06 11:29:41", + "time_label": "08-06 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-06 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1332, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-04 15:01:56", + "log_etime": "2026-08-04 15:10:28", + "sync_time": "2026-08-04 16:13:40", + "time_label": "08-04 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-04 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1331, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-04 13:01:56", + "log_etime": "2026-08-04 13:10:21", + "sync_time": "2026-08-04 13:53:39", + "time_label": "08-04 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-04 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1330, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-03 13:01:56", + "log_etime": "2026-08-03 13:10:41", + "sync_time": "2026-08-03 13:37:43", + "time_label": "08-03 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-03 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1329, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-03 11:01:56", + "log_etime": "2026-08-03 11:10:20", + "sync_time": "2026-08-03 11:29:40", + "time_label": "08-03 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-03 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1328, + "scenic_id": 271, + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "log_stime": "2026-08-02 10:46:56", + "log_etime": "2026-08-02 10:55:06", + "sync_time": "2026-08-02 10:59:56", + "time_label": "08-02 10:46 · 2 段素材", + "name": "三台观景航线(1、2镜头)2026-08-02 10:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1327, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-02 09:46:56", + "log_etime": "2026-08-02 09:54:57", + "sync_time": "2026-08-02 10:00:58", + "time_label": "08-02 09:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-02 09:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1326, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-01 13:46:56", + "log_etime": "2026-08-01 13:54:56", + "sync_time": "2026-08-01 14:00:18", + "time_label": "08-01 13:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-01 13:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1325, + "scenic_id": 271, + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "log_stime": "2026-08-01 11:46:56", + "log_etime": "2026-08-01 11:55:31", + "sync_time": "2026-08-01 12:00:26", + "time_label": "08-01 11:46 · 2 段素材", + "name": "三台观景航线(7、8镜头)2026-08-01 11:46:56", + "material_count": 2, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1333, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-06 11:01:56", + "log_etime": "2026-08-06 11:10:19", + "sync_time": "2026-08-06 11:29:41", + "time_label": "08-06 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-06 11:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1332, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-04 15:01:56", + "log_etime": "2026-08-04 15:10:28", + "sync_time": "2026-08-04 16:13:40", + "time_label": "08-04 15:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-04 15:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1331, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-04 13:01:56", + "log_etime": "2026-08-04 13:10:21", + "sync_time": "2026-08-04 13:53:39", + "time_label": "08-04 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-04 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1330, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-03 13:01:56", + "log_etime": "2026-08-03 13:10:41", + "sync_time": "2026-08-03 13:37:43", + "time_label": "08-03 13:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-03 13:01:56", + "material_count": 8, + "source": "fly_plan" + }, + { + "scenic_media_id": 1329, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-08-03 11:01:56", + "log_etime": "2026-08-03 11:10:20", + "sync_time": "2026-08-03 11:29:40", + "time_label": "08-03 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-08-03 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "sessions": [ + { + "scenic_media_id": 1328, + "scenic_id": 271, + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "log_stime": "2026-08-02 10:46:56", + "log_etime": "2026-08-02 10:55:06", + "sync_time": "2026-08-02 10:59:56", + "time_label": "08-02 10:46 · 2 段素材", + "name": "三台观景航线(1、2镜头)2026-08-02 10:46:56", + "material_count": 2, + "source": "fly_plan" + } + ] + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "sessions": [ + { + "scenic_media_id": 1327, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-02 09:46:56", + "log_etime": "2026-08-02 09:54:57", + "sync_time": "2026-08-02 10:00:58", + "time_label": "08-02 09:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-02 09:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1326, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-01 13:46:56", + "log_etime": "2026-08-01 13:54:56", + "sync_time": "2026-08-01 14:00:18", + "time_label": "08-01 13:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-01 13:46:56", + "material_count": 2, + "source": "fly_plan" + } + ] + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "sessions": [ + { + "scenic_media_id": 1325, + "scenic_id": 271, + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "log_stime": "2026-08-01 11:46:56", + "log_etime": "2026-08-01 11:55:31", + "sync_time": "2026-08-01 12:00:26", + "time_label": "08-01 11:46 · 2 段素材", + "name": "三台观景航线(7、8镜头)2026-08-01 11:46:56", + "material_count": 2, + "source": "fly_plan" + } + ] + } + ], + "total": 109, + "page": 6, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:29:17" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/page7.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page7.json new file mode 100644 index 0000000..b7c55e2 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/page7.json @@ -0,0 +1,61 @@ +{ + "observed_at": "2026-10-30T11:29:21.361134+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 7, + "page_size": 20, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 340, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [], + "groups": [], + "total": 109, + "page": 7, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:29:21" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/preview-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/preview-real.jpg new file mode 100644 index 0000000..8ad62c1 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/preview-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/retention-boundary-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/retention-boundary-real.jpg new file mode 100644 index 0000000..c7a04f2 Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/retention-boundary-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/route273.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/route273.json new file mode 100644 index 0000000..0e7449e --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/route273.json @@ -0,0 +1,127 @@ +{ + "observed_at": "2026-10-30T11:11:23.697111+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 1, + "page_size": 20, + "retention_days": 90, + "air_line_id": 273 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 342, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1327, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-02 09:46:56", + "log_etime": "2026-08-02 09:54:57", + "sync_time": "2026-08-02 10:00:58", + "time_label": "08-02 09:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-02 09:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1326, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-01 13:46:56", + "log_etime": "2026-08-01 13:54:56", + "sync_time": "2026-08-01 14:00:18", + "time_label": "08-01 13:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-01 13:46:56", + "material_count": 2, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "sessions": [ + { + "scenic_media_id": 1327, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-02 09:46:56", + "log_etime": "2026-08-02 09:54:57", + "sync_time": "2026-08-02 10:00:58", + "time_label": "08-02 09:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-02 09:46:56", + "material_count": 2, + "source": "fly_plan" + }, + { + "scenic_media_id": 1326, + "scenic_id": 271, + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "log_stime": "2026-08-01 13:46:56", + "log_etime": "2026-08-01 13:54:56", + "sync_time": "2026-08-01 14:00:18", + "time_label": "08-01 13:46 · 2 段素材", + "name": "三台观景航线(5、6镜头)2026-08-01 13:46:56", + "material_count": 2, + "source": "fly_plan" + } + ] + } + ], + "total": 2, + "page": 1, + "page_size": 20, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 273, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:11:23" + } +} diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/routes-real.jpg b/docs/9.9.1/scenic-sessions-debug-2026-10-30/routes-real.jpg new file mode 100644 index 0000000..0cfe10f Binary files /dev/null and b/docs/9.9.1/scenic-sessions-debug-2026-10-30/routes-real.jpg differ diff --git a/docs/9.9.1/scenic-sessions-debug-2026-10-30/size1.json b/docs/9.9.1/scenic-sessions-debug-2026-10-30/size1.json new file mode 100644 index 0000000..64ec229 --- /dev/null +++ b/docs/9.9.1/scenic-sessions-debug-2026-10-30/size1.json @@ -0,0 +1,98 @@ +{ + "observed_at": "2026-10-30T11:10:28.235009+08:00", + "method": "GET", + "endpoint": "https://api-test.zhifly.cn/api/app/scenic-media/sessions", + "query": { + "scenic_id": 271, + "page": 1, + "page_size": 1, + "retention_days": 90 + }, + "app_version": "2.1.2", + "http_status": 200, + "duration_ms": 338, + "response": { + "code": 100000, + "msg": "success", + "data": { + "list": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ], + "groups": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "sessions": [ + { + "scenic_media_id": 1433, + "scenic_id": 271, + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "log_stime": "2026-10-29 11:01:56", + "log_etime": "2026-10-29 11:09:53", + "sync_time": "2026-10-29 11:29:42", + "time_label": "10-29 11:01 · 8 段素材", + "name": "赛湖东岸八分钟观景航线2026-10-29 11:01:56", + "material_count": 8, + "source": "fly_plan" + } + ] + } + ], + "total": 109, + "page": 1, + "page_size": 1, + "retention_days": 90, + "retention_tips": "素材保留 90 天,请及时下载", + "filter": { + "air_line_id": 0, + "date_from": "", + "date_to": "" + }, + "filter_options": { + "air_lines": [ + { + "air_line_id": 287, + "air_line_name": "赛湖东岸八分钟观景航线", + "route_label": "赛湖东岸八分钟观景航线", + "session_count": 105 + }, + { + "air_line_id": 273, + "air_line_name": "三台观景航线(5、6镜头)", + "route_label": "三台观景航线(5、6镜头)", + "session_count": 2 + }, + { + "air_line_id": 264, + "air_line_name": "三台观景航线(7、8镜头)", + "route_label": "三台观景航线(7、8镜头)", + "session_count": 1 + }, + { + "air_line_id": 254, + "air_line_name": "三台观景航线(1、2镜头)", + "route_label": "三台观景航线(1、2镜头)", + "session_count": 1 + } + ] + } + }, + "time": "2026-10-30 11:10:28" + } +} diff --git a/docs/9.9.1/shooting-integration-2026-10-29/shooting-task-real.jpg b/docs/9.9.1/shooting-integration-2026-10-29/shooting-task-real.jpg new file mode 100644 index 0000000..138c380 Binary files /dev/null and b/docs/9.9.1/shooting-integration-2026-10-29/shooting-task-real.jpg differ diff --git a/docs/9.9.1/shooting-integration-2026-10-29/task6-fixed-layout-real.jpg b/docs/9.9.1/shooting-integration-2026-10-29/task6-fixed-layout-real.jpg new file mode 100644 index 0000000..9a30cda Binary files /dev/null and b/docs/9.9.1/shooting-integration-2026-10-29/task6-fixed-layout-real.jpg differ diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/01-project-info-initial.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/01-project-info-initial.json new file mode 100644 index 0000000..9644fdc --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/01-project-info-initial.json @@ -0,0 +1,109 @@ +{ + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "spot": [ + { + "air_lines": [ + { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png", + "id": 318, + "name": "天门寻梦", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心", + "lat": 32.429597, + "lot": 119.440283, + "scenic_spot_str": "北大科技园" + }, + "sample_piece_ids": [ + 318 + ], + "samples": [ + { + "id": 318, + "name": "天门寻梦" + } + ], + "scenic_spot_id": 412, + "scenic_spot_name": "天门寻梦" + }, + { + "air_lines": [ + { + "air_line_id": 304, + "air_line_name": "天门远山", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png", + "id": 319, + "name": "天门远山", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道花都汇商务中心", + "lat": 32.429872, + "lot": 119.440194, + "scenic_spot_str": "天门远山" + }, + "sample_piece_ids": [ + 319 + ], + "samples": [ + { + "id": 319, + "name": "天门远山" + } + ], + "scenic_spot_id": 413, + "scenic_spot_name": "天门远山" + } + ], + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:17:25" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/02-plane-status-before-summon.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/02-plane-status-before-summon.json new file mode 100644 index 0000000..53f740a --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/02-plane-status-before-summon.json @@ -0,0 +1,79 @@ +{ + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:55" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/03-project-info-preflight.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/03-project-info-preflight.json new file mode 100644 index 0000000..bfb2844 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/03-project-info-preflight.json @@ -0,0 +1,109 @@ +{ + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "spot": [ + { + "air_lines": [ + { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png", + "id": 318, + "name": "天门寻梦", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心", + "lat": 32.429597, + "lot": 119.440283, + "scenic_spot_str": "北大科技园" + }, + "sample_piece_ids": [ + 318 + ], + "samples": [ + { + "id": 318, + "name": "天门寻梦" + } + ], + "scenic_spot_id": 412, + "scenic_spot_name": "天门寻梦" + }, + { + "air_lines": [ + { + "air_line_id": 304, + "air_line_name": "天门远山", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png", + "id": 319, + "name": "天门远山", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道花都汇商务中心", + "lat": 32.429872, + "lot": 119.440194, + "scenic_spot_str": "天门远山" + }, + "sample_piece_ids": [ + 319 + ], + "samples": [ + { + "id": 319, + "name": "天门远山" + } + ], + "scenic_spot_id": 413, + "scenic_spot_name": "天门远山" + } + ], + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:18:59" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/04-tasks-create.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/04-tasks-create.json new file mode 100644 index 0000000..fb3f37c --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/04-tasks-create.json @@ -0,0 +1,40 @@ +{ + "request": { + "method": "POST", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/tasks/create", + "body": { + "air_line_id": 302, + "order_number": "261027271004", + "scenic_id": 271, + "scenic_spot_id": 412 + } + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "task_id": 11, + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:18:59" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/05-shoot.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/05-shoot.json new file mode 100644 index 0000000..b19322e --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/05-shoot.json @@ -0,0 +1,76 @@ +{ + "request": { + "method": "POST", + "url": "https://api-test.zhifly.cn/api/app/airport/shoot", + "body": { + "id": 11, + "restart": false + } + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "airport_sn": "TEST-PLANE-61", + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_progress": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "shot_used": 0, + "status_label": "待拍摄" + }, + "plane_id": 61, + "task_id": 1931, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "是否开始拍摄?确认游客站位与取景后开始", + "phase": "arrived_pending_start", + "primary_action": "start_shoot", + "title": "无人机已到达" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:01" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/06-shooting-entry.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/06-shooting-entry.json new file mode 100644 index 0000000..7064be9 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/06-shooting-entry.json @@ -0,0 +1,227 @@ +{ + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/shooting?id=11&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line": { + "estimated_fly_time": 376, + "fly_type": 1, + "id": 302, + "line_video_duration": 25, + "name": "天门寻梦", + "scenic_spot_id": 412 + }, + "airport_sn": "TEST-PLANE-61", + "airport_status": { + "sn": "TEST-PLANE-61", + "status": 2, + "task_type": 2, + "work_status_label": "拍摄中" + }, + "current_plane": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + }, + "execute_gate": { + "can_execute": true, + "code": "ok", + "message": "", + "primary_action": "start_shoot", + "primary_action_label": "开始拍摄" + }, + "header": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "title": "天门寻梦 · 天门寻梦", + "tourist_label": "游客 130****0004", + "tourist_phone_mask": "130****0004" + }, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": 94, + "value": "94%" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": 10.3, + "value": "10.3℃" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": 0, + "value": "0m/s" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": "no_rain", + "value": "无雨" + }, + { + "key": "signal", + "label": "信号状态", + "raw": "信号良好", + "value": "信号良好" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": 17, + "value": "17颗" + } + ], + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_type": 25, + "order_type_label": "多点位航拍", + "plane_id": 61, + "plane_status": { + "connected": true, + "has_idle": true, + "has_shooting": true, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + }, + "scenic_id": 271 + }, + "scenic": { + "id": 271, + "name": "北大科技园" + }, + "scenic_spot": { + "id": 412, + "name": "天门寻梦" + }, + "task": { + "id": 11, + "status": 20, + "status_label": "执行中", + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_status": 20, + "wayline_status_label": "拍摄中", + "wayline_task_id": 1931 + }, + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "确认游客站位与取景后开始", + "phase": "arrived_pending_start", + "primary_action": "start_shoot", + "primary_action_label": "开始拍摄", + "title": "无人机已到达 是否开始拍摄?" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:04" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/07-shooting-refresh.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/07-shooting-refresh.json new file mode 100644 index 0000000..6291033 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/07-shooting-refresh.json @@ -0,0 +1,227 @@ +{ + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/shooting?id=11&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line": { + "estimated_fly_time": 376, + "fly_type": 1, + "id": 302, + "line_video_duration": 25, + "name": "天门寻梦", + "scenic_spot_id": 412 + }, + "airport_sn": "TEST-PLANE-61", + "airport_status": { + "sn": "TEST-PLANE-61", + "status": 0, + "task_type": null, + "work_status_label": "离线" + }, + "current_plane": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + "execute_gate": { + "can_execute": false, + "code": "wayline_not_shooting", + "message": "航线任务状态不可拍摄(当前:执行失败)", + "primary_action": "blocked", + "primary_action_label": "航线任务状态不可拍摄(当前:执行失败)" + }, + "header": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "title": "天门寻梦 · 天门寻梦", + "tourist_label": "游客 130****0004", + "tourist_phone_mask": "130****0004" + }, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": 94, + "value": "94%" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": 10.3, + "value": "10.3℃" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": 0, + "value": "0m/s" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": "no_rain", + "value": "无雨" + }, + { + "key": "signal", + "label": "信号状态", + "raw": "信号良好", + "value": "信号良好" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": 17, + "value": "17颗" + } + ], + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_type": 25, + "order_type_label": "多点位航拍", + "plane_id": 61, + "plane_status": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + "scenic_id": 271 + }, + "scenic": { + "id": 271, + "name": "北大科技园" + }, + "scenic_spot": { + "id": 412, + "name": "天门寻梦" + }, + "task": { + "id": 11, + "status": 20, + "status_label": "执行中", + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_status": 91, + "wayline_status_label": "执行失败", + "wayline_task_id": 1931 + }, + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "航线任务状态不可拍摄(当前:执行失败)", + "phase": "blocked", + "primary_action": "blocked", + "primary_action_label": "航线任务状态不可拍摄(当前:执行失败)", + "title": "航线任务状态不可拍摄(当前:执行失败)" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:59" + } + } +} diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/README.md b/docs/9.9.1/takeoff-integration-2026-10-29-1718/README.md new file mode 100644 index 0000000..df18f36 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/README.md @@ -0,0 +1,98 @@ +# 模拟器起飞流程联调记录 · 2026-10-29 17:16–17:20 + +本次已在模拟器从真实机巢首页进入拍摄准备,点击一次“确认并召唤”。`tasks/create → shoot → shooting` 串接成功并自动进入拍摄任务页,但 55 秒后手动回查发现航线执行失败。只能确认召唤请求被服务端受理,不能确认无人机实际起飞或到达成功。 + +## 环境和任务身份 + +- 测试环境:`https://api-test.zhifly.cn`;时间均为北京时间(Asia/Shanghai)。 +- iPhone 18 Pro 模拟器,iOS 27.0,`suixinkan-Simulator / SimulatorDebug`;构建与运行成功。 +- 当前门店账号,景区 `271`,项目 `386`,订单 `261027271004`。 +- 页面选择点位 `412`(天门寻梦)、航线 `302`(天门寻梦)。 +- 本次新建订单飞行任务 **11**;派机 **61**;航线任务 **1931**;任务 UUID `917d0fdf-d55b-4263-889a-aae81d99cd7c`。 +- `shoot.data.task_id=1931` 是航线任务 ID;后续查询始终使用 `shooting?id=11`。 + +## 实际请求与响应 + +以下所有已收到的响应均为 HTTP `200`、业务 `code=100000`。JSON 文件同时保存请求 method、完整 URL/body,以及 HTTP 状态和完整业务响应;设备 SN/名称与游客脱敏手机号已替换为测试值,其余字段保留真实值和类型。 + +| 响应时间 | 提供人 / 接口 | 关键返回 | 完整记录 | +| --- | --- | --- | --- | +| 17:17:25 | 张工 `GET /api/yf-handset-app/photog/multi-plane/project-info` | 总次数/剩余次数 5,`can_create_task=true`,点位 412 / 航线 302 可用 | [首次准备数据](01-project-info-initial.json) | +| 17:18:55 | 朱工 `GET /api/app/airport/plane-status` | 58 空闲、电量 93%,但 `can_fly=false`、`is_receive_order=2`;61、57 离线;三个设备的 `can_fly` 均为 false | [提交前设备状态](02-plane-status-before-summon.json) | +| 17:18:59 | 张工 `GET /api/yf-handset-app/photog/multi-plane/project-info` | 点击后的购买配置复核通过,仍剩余 5 次 | [提交前购买复核](03-project-info-preflight.json) | +| 17:18:59 | 张工 `POST /api/yf-handset-app/photog/multi-plane/tasks/create` | `task_id=11`,总/剩余次数仍为 5 | [创建任务](04-tasks-create.json) | +| 17:19:01 | 朱工 `POST /api/app/airport/shoot` | 任务 11 绑定飞机 61 / 航线任务 1931;`ui.phase=arrived_pending_start` | [召唤回执](05-shoot.json) | +| 17:19:04 | 朱工 `GET /api/app/airport/shooting?id=11&live_battery=1` | `task.wayline_status=20`,`execute_gate.can_execute=true`,文案“无人机已到达 是否开始拍摄?” | [进入任务页](06-shooting-entry.json) | +| 17:19:59 | 朱工同一 `shooting`,点击导航栏刷新一次 | `wayline_status=91` 执行失败,`can_execute=false`、`code=wayline_not_shooting`,飞机 61 离线 | [手动回查](07-shooting-refresh.json) | + +创建请求: + +```json +{ + "air_line_id": 302, + "order_number": "261027271004", + "scenic_id": 271, + "scenic_spot_id": 412 +} +``` + +召唤请求(没有传 `plane_id`,由服务端派机;没有覆盖航线): + +```json +{ + "id": 11, + "restart": false +} +``` + +最后一次 `shooting` 的关键返回(节选,完整 JSON 见表格): + +```json +{ + "code": 100000, + "data": { + "task": { + "id": 11, + "status": 20, + "status_label": "执行中", + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_status": 91, + "wayline_status_label": "执行失败", + "wayline_task_id": 1931 + }, + "execute_gate": { + "can_execute": false, + "code": "wayline_not_shooting", + "message": "航线任务状态不可拍摄(当前:执行失败)", + "primary_action": "blocked", + "primary_action_label": "航线任务状态不可拍摄(当前:执行失败)" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:59" +} +``` + +## 页面实际表现 + +- 首页点击该订单“开始拍摄”后进入准备页,再读取 `project-info` 与 `plane-status`。 +- 点击一次“确认并召唤”,先复核购买数据,再创建任务 11 并召唤;召唤返回后自动进入任务页。 +- 首次显示“无人机已到达 是否开始拍摄?”,六项读数为 `94% / 10.3℃ / 0m/s / 无雨 / 信号良好 / 17颗`。 +- 导航栏手动刷新后,显示“执行失败”和后端原因,设备显示“离线 · 电量94%”。 +- “开始拍摄”、暂停、返航尚未接入控制 API,按钮保持禁用。本次没有调用 `start-shoot`、`command`,也没有重建或重试召唤。 +- `shooting` 仅调用两次(进页一次、明确手动刷新一次),未恢复定时轮询。 + +本地截图(含真实页面信息,保留本地,不随代码提交):`preparation-local.jpg`、`task11-arrived-local.jpg`、`task11-failed-local.jpg`。 + +## 后端待核对事项 + +1. **朱工:定位航线任务 1931 的失败原因。** 首次查询 17:19:04 仍为状态 20,17:19:59 回查为 91;返回的 `result_code/result_message` 仍为空,客户端无法得知具体失败环节。请结合任务 UUID、飞机 61 和大疆/司空日志核查。 +2. **朱工:核对自动派机与执行门禁。** 召唤前飞机 61 是 `online_status=2/work_status=0/can_fly=false`,仍被 `shoot` 选中;首次 `shooting.current_plane.online_status=2/can_fly=false`,但门禁 `can_execute=true`。需要明确字段来源及允许派机/开始的条件,不能仅凭“已到达”文案确认物理状态,也不能从现有回执断定离线字段与失败存在因果关系。 +3. **朱工与张工:统一订单套餐次数。** 张工 `project-info/tasks/create` 是“多点位航拍”、总/剩余 5 次;朱工 `shoot.order_progress`、`shooting.header` 是“单次航拍 · 含1次拍摄”、总/剩余 1 次。当前 App 如实显示各接口返回。 +4. **朱工:统一通用响应示例。** 最新文档仍写成功 `code=0/message`,本次实际全部为 `code=100000/msg`,与现有客户端解析一致。 + +## 记录范围 + +[所有请求与响应](all-api-records.redacted.json) 共 25 条请求记录:主页 3 次、`project-info` 2 次、准备页 `plane-status` 16 次、创建 1 次、召唤 1 次、任务查询 2 次。准备页轮询中的最后一次请求在页面跳转时取消,日志为 `URLError.cancelled`,没有响应 JSON;其余 24 条均保留完整回执。准备页的既有轮询和任务页的单次读取相互独立。 + +[核验元数据](verification.json) 包含请求次数及原运行日志路径;原始未脱敏请求响应保留于本机 `/private/tmp/suixinkan-takeoff-20261029-1718-api-raw.json`。本次只进行模拟器联调与记录,没有修改业务代码。 diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/all-api-records.redacted.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/all-api-records.redacted.json new file mode 100644 index 0000000..b98c4e0 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/all-api-records.redacted.json @@ -0,0 +1,2231 @@ +[ + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/home?scenic_id=271" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "airports": [ + { + "id": 61, + "is_receive_order": 1, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": null, + "value": "—" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": null, + "value": "—" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": null, + "value": "—" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": null, + "value": "—" + }, + { + "key": "signal", + "label": "信号状态", + "raw": null, + "value": "—" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": null, + "value": "—" + } + ], + "name": "测试无人机 61", + "online_status": 2, + "scenic_area_id": 271, + "sn_number": "TEST-PLANE-61", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "id": 58, + "is_receive_order": 2, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": 93, + "value": "93%" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": null, + "value": "—" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": 0, + "value": "0m/s" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": null, + "value": "—" + }, + { + "key": "signal", + "label": "信号状态", + "raw": null, + "value": "—" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": 32, + "value": "32颗" + } + ], + "name": "测试无人机 58", + "online_status": 1, + "scenic_area_id": 271, + "sn_number": "TEST-PLANE-58", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "id": 57, + "is_receive_order": 2, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": null, + "value": "—" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": null, + "value": "—" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": null, + "value": "—" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": null, + "value": "—" + }, + { + "key": "signal", + "label": "信号状态", + "raw": null, + "value": "—" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": null, + "value": "—" + } + ], + "name": "测试无人机 57", + "online_status": 2, + "scenic_area_id": 271, + "sn_number": "TEST-PLANE-57", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:16:40" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/today-stats?scenic_id=271" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "cash_paid": "0.00", + "cash_refund": "0.00", + "completed_count": 0, + "deal_amount": "0.00", + "deal_count": 0, + "points_net": 0, + "points_paid": 0, + "points_refund": 0 + }, + "msg": "success", + "time": "2026-10-29 17:16:39" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/orders?scenic_id=271&status=all&page=1&page_size=20" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "list": [ + { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "user_phone": "130****0004" + }, + { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": false, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:16:18", + "film_count": 0, + "material_status": 0, + "order_number": "261027271001", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "pending", + "shot_count": 0, + "user_phone": "130****0004" + } + ], + "page": 1, + "page_size": 20, + "total": 2 + }, + "msg": "success", + "time": "2026-10-29 17:16:39" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:26" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "spot": [ + { + "air_lines": [ + { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png", + "id": 318, + "name": "天门寻梦", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心", + "lat": 32.429597, + "lot": 119.440283, + "scenic_spot_str": "北大科技园" + }, + "sample_piece_ids": [ + 318 + ], + "samples": [ + { + "id": 318, + "name": "天门寻梦" + } + ], + "scenic_spot_id": 412, + "scenic_spot_name": "天门寻梦" + }, + { + "air_lines": [ + { + "air_line_id": 304, + "air_line_name": "天门远山", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png", + "id": 319, + "name": "天门远山", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道花都汇商务中心", + "lat": 32.429872, + "lot": 119.440194, + "scenic_spot_str": "天门远山" + }, + "sample_piece_ids": [ + 319 + ], + "samples": [ + { + "id": 319, + "name": "天门远山" + } + ], + "scenic_spot_id": 413, + "scenic_spot_name": "天门远山" + } + ], + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:17:25" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:32" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:39" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:45" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:51" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:17:58" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:05" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:11" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:17" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:24" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:30" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:36" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:43" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:49" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 93%", + "battery_percent": 93, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲 · 电量 93%", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + "scenic_id": 271 + }, + "msg": "success", + "time": "2026-10-29 17:18:55" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "spot": [ + { + "air_lines": [ + { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png", + "id": 318, + "name": "天门寻梦", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心", + "lat": 32.429597, + "lot": 119.440283, + "scenic_spot_str": "北大科技园" + }, + "sample_piece_ids": [ + 318 + ], + "samples": [ + { + "id": 318, + "name": "天门寻梦" + } + ], + "scenic_spot_id": 412, + "scenic_spot_name": "天门寻梦" + }, + { + "air_lines": [ + { + "air_line_id": 304, + "air_line_name": "天门远山", + "available": true, + "samples": [ + { + "cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png", + "id": 319, + "name": "天门远山", + "preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4" + } + ], + "unavailable_reason": "" + } + ], + "available": true, + "cover_url": "", + "region": { + "address": "江苏省扬州市邗江区城北街道花都汇商务中心", + "lat": 32.429872, + "lot": 119.440194, + "scenic_spot_str": "天门远山" + }, + "sample_piece_ids": [ + 319 + ], + "samples": [ + { + "id": 319, + "name": "天门远山" + } + ], + "scenic_spot_id": 413, + "scenic_spot_name": "天门远山" + } + ], + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:18:59" + } + } + }, + { + "request": { + "method": "POST", + "url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/tasks/create", + "body": { + "air_line_id": 302, + "order_number": "261027271004", + "scenic_id": 271, + "scenic_spot_id": 412 + } + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "can_confirm": false, + "can_create_task": true, + "can_upload_film": true, + "confirm_status": 0, + "confirmed_at": null, + "created_at": "2026-10-27 17:39:10", + "film_count": 0, + "material_status": 0, + "order_number": "261027271004", + "order_status": 20, + "project_id": 386, + "project_name": "多点位航拍", + "remaining_count": 5, + "shoot_count": 5, + "shoot_status": "processing", + "shot_count": 0, + "task_id": 11, + "user_phone": "130****0004" + }, + "msg": "success", + "time": "2026-10-29 17:18:59" + } + } + }, + { + "request": { + "method": "POST", + "url": "https://api-test.zhifly.cn/api/app/airport/shoot", + "body": { + "id": 11, + "restart": false + } + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line_id": 302, + "air_line_name": "天门寻梦", + "airport_sn": "TEST-PLANE-61", + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_progress": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "shot_used": 0, + "status_label": "待拍摄" + }, + "plane_id": 61, + "task_id": 1931, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "是否开始拍摄?确认游客站位与取景后开始", + "phase": "arrived_pending_start", + "primary_action": "start_shoot", + "title": "无人机已到达" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:01" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1" + }, + "cancelled_reason": "URLError.cancelled" + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/shooting?id=11&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line": { + "estimated_fly_time": 376, + "fly_type": 1, + "id": 302, + "line_video_duration": 25, + "name": "天门寻梦", + "scenic_spot_id": 412 + }, + "airport_sn": "TEST-PLANE-61", + "airport_status": { + "sn": "TEST-PLANE-61", + "status": 2, + "task_type": 2, + "work_status_label": "拍摄中" + }, + "current_plane": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + }, + "execute_gate": { + "can_execute": true, + "code": "ok", + "message": "", + "primary_action": "start_shoot", + "primary_action_label": "开始拍摄" + }, + "header": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "title": "天门寻梦 · 天门寻梦", + "tourist_label": "游客 130****0004", + "tourist_phone_mask": "130****0004" + }, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": 94, + "value": "94%" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": 10.3, + "value": "10.3℃" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": 0, + "value": "0m/s" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": "no_rain", + "value": "无雨" + }, + { + "key": "signal", + "label": "信号状态", + "raw": "信号良好", + "value": "信号良好" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": 17, + "value": "17颗" + } + ], + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_type": 25, + "order_type_label": "多点位航拍", + "plane_id": 61, + "plane_status": { + "connected": true, + "has_idle": true, + "has_shooting": true, + "planes": [ + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 2, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "拍摄中 · 电量 94%", + "task_type": 2, + "work_status": 2, + "work_status_label": "拍摄中" + }, + "scenic_id": 271 + }, + "scenic": { + "id": 271, + "name": "北大科技园" + }, + "scenic_spot": { + "id": 412, + "name": "天门寻梦" + }, + "task": { + "id": 11, + "status": 20, + "status_label": "执行中", + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_status": 20, + "wayline_status_label": "拍摄中", + "wayline_task_id": 1931 + }, + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "确认游客站位与取景后开始", + "phase": "arrived_pending_start", + "primary_action": "start_shoot", + "primary_action_label": "开始拍摄", + "title": "无人机已到达 是否开始拍摄?" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:04" + } + } + }, + { + "request": { + "method": "GET", + "url": "https://api-test.zhifly.cn/api/app/airport/shooting?id=11&live_battery=1" + }, + "response": { + "http_status": 200, + "body": { + "code": 100000, + "data": { + "air_line": { + "estimated_fly_time": 376, + "fly_type": 1, + "id": 302, + "line_video_duration": 25, + "name": "天门寻梦", + "scenic_spot_id": 412 + }, + "airport_sn": "TEST-PLANE-61", + "airport_status": { + "sn": "TEST-PLANE-61", + "status": 0, + "task_type": null, + "work_status_label": "离线" + }, + "current_plane": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + "execute_gate": { + "can_execute": false, + "code": "wayline_not_shooting", + "message": "航线任务状态不可拍摄(当前:执行失败)", + "primary_action": "blocked", + "primary_action_label": "航线任务状态不可拍摄(当前:执行失败)" + }, + "header": { + "order_number": "261027271004", + "package_name": "单次航拍 · 含 1 次拍摄", + "shot_remain": 1, + "shot_total": 1, + "title": "天门寻梦 · 天门寻梦", + "tourist_label": "游客 130****0004", + "tourist_phone_mask": "130****0004" + }, + "metrics": [ + { + "key": "battery", + "label": "电池电量", + "raw": 94, + "value": "94%" + }, + { + "key": "env_temp", + "label": "环境温度", + "raw": 10.3, + "value": "10.3℃" + }, + { + "key": "wind_speed", + "label": "风速", + "raw": 0, + "value": "0m/s" + }, + { + "key": "rainfall", + "label": "雨量", + "raw": "no_rain", + "value": "无雨" + }, + { + "key": "signal", + "label": "信号状态", + "raw": "信号良好", + "value": "信号良好" + }, + { + "key": "satellite", + "label": "搜星状态", + "raw": 17, + "value": "17颗" + } + ], + "order_flight_task": { + "air_line_id": 302, + "airport_sn": "TEST-PLANE-61", + "deducted": 0, + "finished_at": null, + "id": 11, + "medias": [], + "order_id": 0, + "order_number": "261027271004", + "plane_id": 61, + "result_code": "", + "result_message": "", + "scenic_id": 271, + "scenic_spot_id": 412, + "seq": 11, + "spot_attempt": 11, + "started_at": "2026-10-29 17:19:00", + "status": 20, + "status_label": "执行中", + "store_id": 38, + "store_user_id": 772, + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_task_id": 1931 + }, + "order_type": 25, + "order_type_label": "多点位航拍", + "plane_id": 61, + "plane_status": { + "connected": true, + "has_idle": true, + "has_shooting": false, + "planes": [ + { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 58, + "is_receive_order": 2, + "name": "测试无人机 58", + "online_status": 1, + "sn_number": "TEST-PLANE-58", + "status_text": "空闲", + "task_type": null, + "work_status": 1, + "work_status_label": "空闲" + }, + { + "battery_label": "", + "battery_percent": null, + "can_fly": false, + "id": 57, + "is_receive_order": 2, + "name": "测试无人机 57", + "online_status": 2, + "sn_number": "TEST-PLANE-57", + "status_text": "离线", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + } + ], + "poll_hint_ms": 5000, + "recommend": { + "battery_label": "电量 94%", + "battery_percent": 94, + "can_fly": false, + "id": 61, + "is_receive_order": 1, + "name": "测试无人机 61", + "online_status": 2, + "sn_number": "TEST-PLANE-61", + "status_text": "离线 · 电量 94%", + "task_type": null, + "work_status": 0, + "work_status_label": "离线" + }, + "scenic_id": 271 + }, + "scenic": { + "id": 271, + "name": "北大科技园" + }, + "scenic_spot": { + "id": 412, + "name": "天门寻梦" + }, + "task": { + "id": 11, + "status": 20, + "status_label": "执行中", + "task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c", + "wayline_status": 91, + "wayline_status_label": "执行失败", + "wayline_task_id": 1931 + }, + "ui": { + "commands": [ + { + "command": "flighttask_pause", + "label": "紧急暂停", + "sub": "悬停待命" + }, + { + "command": "return_home", + "label": "立即返航", + "sub": "中断任务" + } + ], + "message": "航线任务状态不可拍摄(当前:执行失败)", + "phase": "blocked", + "primary_action": "blocked", + "primary_action_label": "航线任务状态不可拍摄(当前:执行失败)", + "title": "航线任务状态不可拍摄(当前:执行失败)" + } + }, + "msg": "success", + "time": "2026-10-29 17:19:59" + } + } + } +] diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/preparation-local.jpg b/docs/9.9.1/takeoff-integration-2026-10-29-1718/preparation-local.jpg new file mode 100644 index 0000000..68c818d Binary files /dev/null and b/docs/9.9.1/takeoff-integration-2026-10-29-1718/preparation-local.jpg differ diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-arrived-local.jpg b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-arrived-local.jpg new file mode 100644 index 0000000..c65ceb8 Binary files /dev/null and b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-arrived-local.jpg differ diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failed-local.jpg b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failed-local.jpg new file mode 100644 index 0000000..2954d82 Binary files /dev/null and b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failed-local.jpg differ diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failure-aligned-local.jpg b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failure-aligned-local.jpg new file mode 100644 index 0000000..d5ae100 Binary files /dev/null and b/docs/9.9.1/takeoff-integration-2026-10-29-1718/task11-failure-aligned-local.jpg differ diff --git a/docs/9.9.1/takeoff-integration-2026-10-29-1718/verification.json b/docs/9.9.1/takeoff-integration-2026-10-29-1718/verification.json new file mode 100644 index 0000000..3394990 --- /dev/null +++ b/docs/9.9.1/takeoff-integration-2026-10-29-1718/verification.json @@ -0,0 +1,39 @@ +{ + "tested_at": "2026-10-29", + "timezone": "Asia/Shanghai", + "environment": "https://api-test.zhifly.cn", + "simulator": "iPhone 18 Pro / iOS 27.0", + "order_number": "261027271004", + "scenic_id": 271, + "project_id": 386, + "scenic_spot_id": 412, + "air_line_id": 302, + "task_id": 11, + "wayline_task_id": 1931, + "plane_id": 61, + "request_counts": { + "GET /api/app/airport/home": 1, + "GET /api/yf-handset-app/photog/multi-plane/today-stats": 1, + "GET /api/yf-handset-app/photog/multi-plane/orders": 1, + "GET /api/app/airport/plane-status": 16, + "GET /api/yf-handset-app/photog/multi-plane/project-info": 2, + "POST /api/yf-handset-app/photog/multi-plane/tasks/create": 1, + "POST /api/app/airport/shoot": 1, + "GET /api/app/airport/shooting": 2 + }, + "all_http_statuses": [ + 200 + ], + "all_business_codes": [ + 100000 + ], + "last_observation": { + "time": "2026-10-29 17:19:59", + "task_status": 20, + "wayline_status": 91, + "gate_can_execute": false + }, + "redaction": "设备SN替换为TEST-PLANE-id,设备名称及游客脱敏手机号替换为测试值;其它字段与真实回执一致。", + "raw_local_path": "/private/tmp/suixinkan-takeoff-20261029-1718-api-raw.json", + "runtime_log_path": "/Users/hanqiu/Library/Developer/XcodeBuildMCP/workspaces/suixinkan-a3033d697ba3/logs/com.yuanzhixiang.suixinkan_2026-10-29T09-16-37-232Z_helperpid61913_ownerpid15238_24c18594.log" +} diff --git a/suixinkan/Core/Networking/APIClient.swift b/suixinkan/Core/Networking/APIClient.swift index 5d31f29..4e54feb 100644 --- a/suixinkan/Core/Networking/APIClient.swift +++ b/suixinkan/Core/Networking/APIClient.swift @@ -98,20 +98,20 @@ final class APIClient { (data, response) = try await session.data(for: request) } catch is CancellationError { if let trace { droneDockLogSink(trace.message("request.cancelled")) } - else { logCancelled(for: request, reason: "CancellationError", category: apiRequest.redactedLogCategory) } + else { logCancelled(for: request, reason: "CancellationError", category: apiRequest.redactedLogCategory, includeBody: apiRequest.logsPayload) } throw CancellationError() } catch let error as URLError { if let trace { droneDockLogSink(trace.message(error.code == .cancelled ? "request.cancelled" : "request.failed", fields: DroneDockDiagnostics.errorFields(error))) } if error.code == .cancelled { - if trace == nil { logCancelled(for: request, reason: "URLError.cancelled", category: apiRequest.redactedLogCategory) } + if trace == nil { logCancelled(for: request, reason: "URLError.cancelled", category: apiRequest.redactedLogCategory, includeBody: apiRequest.logsPayload) } throw CancellationError() } - if trace == nil { logFailure(for: request, error: error, category: apiRequest.redactedLogCategory) } + if trace == nil { logFailure(for: request, error: error, category: apiRequest.redactedLogCategory, includeBody: apiRequest.logsPayload) } throw APIError.networkFailed(networkErrorMessage(for: error)) } catch { if let trace { droneDockLogSink(trace.message("request.failed", fields: DroneDockDiagnostics.errorFields(error))) } - if trace == nil { logFailure(for: request, error: error, category: apiRequest.redactedLogCategory) } + if trace == nil { logFailure(for: request, error: error, category: apiRequest.redactedLogCategory, includeBody: apiRequest.logsPayload) } throw APIError.networkFailed(error.localizedDescription) } @@ -135,7 +135,6 @@ final class APIClient { return value } catch let error as APIError { if let trace { droneDockLogSink(trace.message("response.rejected", fields: DroneDockDiagnostics.errorFields(error))) } - else { logFailure(for: request, error: error, category: apiRequest.redactedLogCategory) } notifySessionErrorIfNeeded(for: error, request: request) throw error } @@ -195,7 +194,6 @@ final class APIClient { try validateHTTPResponse(response, data: data) return try decodeEnvelope(Response.self, from: data) } catch let error as APIError { - logFailure(for: request, error: error) notifySessionErrorIfNeeded(for: error, request: request) throw error } @@ -270,7 +268,6 @@ final class APIClient { try validateHTTPResponse(response, data: responseData) return try decodeEnvelope(Response.self, from: responseData) } catch let error as APIError { - logFailure(for: request, error: error) notifySessionErrorIfNeeded(for: error, request: request) throw error } @@ -422,111 +419,43 @@ final class APIClient { } } - /// Debug/Release 均打印请求地址、参数、请求头和正文。 + /// 发起请求时只打印路径和业务入参,不包含 Header、方法或诊断信封。 private func logRequest(_ request: URLRequest, includeBody: Bool = true, category: String? = nil) { if let category { debugLogSink(APIRedactedLog.request(request, category: category, includeBody: includeBody)) - return + } else { + debugLogSink(APIConsoleFormat.message(path: request.url?.path ?? "", + params: APIConsoleFormat.parameters(request, includeBody: includeBody))) } - let method = request.httpMethod ?? "REQUEST" - let url = request.url?.absoluteString ?? "" - var lines = ["\(APIConsoleFormat.prefix("Request", path: request.url?.path ?? "")) \(method) \(url)"] - if let headers = request.allHTTPHeaderFields, !headers.isEmpty { - lines.append("headers: " + DroneDockDiagnostics.json(headers)) - } - - if let queryItems = URLComponents(url: request.url ?? URL(fileURLWithPath: "/"), resolvingAgainstBaseURL: false)?.queryItems, - !queryItems.isEmpty { - let params = queryItems - .map { item in - let value = item.value ?? "" - return "\(item.name)=\(value)" - } - .joined(separator: "&") - lines.append("params: \(params)") - } - - let contentType = request.value(forHTTPHeaderField: "Content-Type") - if includeBody, let body = Self.debugRequestBody(from: request.httpBody, contentType: contentType) { - lines.append("body:\n\(body)") - } - - debugLogSink(lines.joined(separator: "\n")) } - /// Debug/Release 均打印响应状态、响应头及完整正文,包括非成功响应。 + /// 原始回包整体放入 response,业务失败同样保留完整 JSON,不另打印解析事件。 private func logResponse(for request: URLRequest, response: URLResponse, data: Data, includeBody: Bool = true, category: String? = nil) { if let category { debugLogSink(APIRedactedLog.response(for: request, response: response, data: data, category: category, includeBody: includeBody)) - return - } - let method = request.httpMethod ?? "REQUEST" - let url = request.url?.absoluteString ?? "" - let statusCode = (response as? HTTPURLResponse).map { String($0.statusCode) } ?? "unknown" - let body = includeBody ? Self.debugResponseBody(from: data) : "" - let headers = (response as? HTTPURLResponse)?.allHeaderFields.reduce(into: [String: String]()) { - $0[String(describing: $1.key)] = String(describing: $1.value) - } ?? [:] - debugLogSink("\(APIConsoleFormat.prefix("Response", path: request.url?.path ?? "")) \(method) \(url) status=\(statusCode)\nheaders: \(DroneDockDiagnostics.json(headers))\n\(body)") - } - - /// Debug/Release 均记录取消,取消不记作成功响应或网络失败。 - private func logCancelled(for request: URLRequest, reason: String, category: String? = nil) { - if let category { - debugLogSink(APIRedactedLog.event("Cancelled", for: request, category: category) + " reason=\(reason)") - return - } - let method = request.httpMethod ?? "REQUEST" - let url = request.url?.absoluteString ?? "" - debugLogSink("\(APIConsoleFormat.prefix("Cancelled", path: request.url?.path ?? "")) \(method) \(url) reason=\(reason)") - } - - /// 所有业务模块均记录传输、业务拒绝或解码失败;保留显式模块日志策略。 - private func logFailure(for request: URLRequest, error: Error, category: String? = nil) { - let error = error as NSError - if let category { - debugLogSink(APIRedactedLog.event("Failure", for: request, category: category) - + " error=\(error.domain)(\(error.code))") } else { - debugLogSink("\(APIConsoleFormat.prefix("Failure", path: request.url?.path ?? "")) \(request.httpMethod ?? "REQUEST") \(request.url?.absoluteString ?? "")" - + " error=\(error.domain)(\(error.code)) message=\(error.localizedDescription)") + debugLogSink(APIConsoleFormat.message(path: request.url?.path ?? "", + params: APIConsoleFormat.parameters(request, includeBody: includeBody), + response: includeBody ? APIConsoleFormat.payload(data) : "")) } } - /// 将请求体格式化为便于调试阅读的字符串。 - private static func debugRequestBody(from data: Data?, contentType: String?) -> String? { - guard let data, !data.isEmpty else { return nil } - - if let contentType, contentType.lowercased().contains("multipart/form-data") { - return "" - } - - if - let object = try? JSONSerialization.jsonObject(with: data), - let prettyData = try? JSONSerialization.data(withJSONObject: object, options: [.prettyPrinted, .sortedKeys]), - let prettyJSON = String(data: prettyData, encoding: .utf8) { - return prettyJSON - } - - if let text = String(data: data, encoding: .utf8), !text.isEmpty { - return text - } - - return "" + /// 取消是本地结果,不生成后端业务成功或失败回包。 + private func logCancelled(for request: URLRequest, reason: String, category: String? = nil, includeBody: Bool = true) { + logLocalFailure(for: request, kind: "cancelled", message: "请求已取消", category: category, includeBody: includeBody) } - /// 将响应体格式化为便于调试阅读的字符串。 - private static func debugResponseBody(from data: Data) -> String { - guard !data.isEmpty else { return "" } - if - let object = try? JSONSerialization.jsonObject(with: data), - let prettyData = try? JSONSerialization.data(withJSONObject: object, options: [.prettyPrinted, .sortedKeys]), - let prettyJSON = String(data: prettyData, encoding: .utf8) { - return prettyJSON - } - return String(data: data, encoding: .utf8) ?? "" + /// 仅网络层未收到响应时打印本地错误;已经打印原始回包的业务/解析异常不重复输出。 + private func logFailure(for request: URLRequest, error: Error, category: String? = nil, includeBody: Bool = true) { + logLocalFailure(for: request, kind: "network_failed", message: error.localizedDescription, category: category, includeBody: includeBody) + } + + private func logLocalFailure(for request: URLRequest, kind: String, message: String, category: String?, includeBody: Bool) { + debugLogSink(APIConsoleFormat.failure(path: request.url?.path ?? "", + params: category == nil ? APIConsoleFormat.parameters(request, includeBody: includeBody) : APIRedactedLog.parameters(request, includeBody: includeBody), + kind: kind, message: message)) } } diff --git a/suixinkan/Core/Networking/APIConsoleDiagnostics.swift b/suixinkan/Core/Networking/APIConsoleDiagnostics.swift index d42b82e..e59b0a4 100644 --- a/suixinkan/Core/Networking/APIConsoleDiagnostics.swift +++ b/suixinkan/Core/Networking/APIConsoleDiagnostics.swift @@ -1,17 +1,41 @@ +import Darwin import Foundation import OSLog -/// 其他业务模块的统一控制台出口,Debug 和 Release 均通过系统日志完整分段输出。 +/// Debug/Release 共用简洁日志出口,序列化输出完整 JSON,避免并发日志互相穿插。 enum APIConsoleDiagnostics { private static let logger = Logger(subsystem: "com.yuanzhixiang.suixinkan", category: "API") - private static let sessionID = String(UUID().uuidString.prefix(8)) + private static let droneDockLogger = Logger(subsystem: "com.yuanzhixiang.suixinkan", category: "DroneDock") + private static let outputLock = NSLock() - /// 不依赖调试构建或 stdout;复用 UTF-8 分段规则,避免长 JSON 被系统截断。 + /// Xcode 附加调试时输出一个完整 JSON;脱离调试器时继续写入系统日志。 static func write(_ message: String) { - let entry = String(UUID().uuidString.prefix(8)) - for line in APIConsoleFormat.lines(message, sessionID: sessionID, entryID: entry, - fallbackModule: "通用接口") { - logger.notice("\(line, privacy: .public)") + output(message, logger: logger) + } + + /// 保留机巢原有系统日志 category,正文格式与其它模块一致。 + static func writeDroneDock(_ message: String) { + output(message, logger: droneDockLogger) + } + + private static func output(_ message: String, logger: Logger) { + guard let text = APIConsoleFormat.render(message) else { return } + outputLock.lock() + defer { outputLock.unlock() } + if isDebuggerAttached || isatty(STDOUT_FILENO) != 0 { + // 不受系统日志单条长度限制,也不受 DEBUG 编译条件影响。 + FileHandle.standardOutput.write(Data((text + "\n").utf8)) + } else { + // 保留独立运行 Release 包的系统日志可见性,不加 session/entry/part 等包装。 + for chunk in DroneDockDiagnostics.chunks(text) { logger.notice("\(chunk, privacy: .public)") } } } + + private static var isDebuggerAttached: Bool { + var info = kinfo_proc() + var size = MemoryLayout.stride + var name: [Int32] = [CTL_KERN, KERN_PROC, KERN_PROC_PID, getpid()] + return sysctl(&name, 4, &info, &size, nil, 0) == 0 + && (info.kp_proc.p_flag & P_TRACED) != 0 + } } diff --git a/suixinkan/Core/Networking/APIConsoleFormat.swift b/suixinkan/Core/Networking/APIConsoleFormat.swift index 951a0bb..85ebe88 100644 --- a/suixinkan/Core/Networking/APIConsoleFormat.swift +++ b/suixinkan/Core/Networking/APIConsoleFormat.swift @@ -1,102 +1,91 @@ import Foundation -/// 控制台统一使用中文业务模块标签;只格式化输出,不修改请求和响应内容。 +/// 控制台只展示路径、入参及原始返回 JSON,不输出诊断信封或业务事件。 enum APIConsoleFormat { - /// 根据接口路径匹配业务模块;共享接口按自身职责命名,未知接口保留通用标签。 - static func module(for path: String) -> String { - let routes: [(String, String)] = [ - ("/api/app/airport", "机巢工作台"), - ("/api/app/order-flight-task", "机巢工作台"), - ("/api/yf-handset-app/photog/multi-plane", "机巢工作台"), - ("/api/app/scenic-media", "景区空境库"), - ("/api/app/config/get-sts-token", "文件上传"), - ("/api/app/scenic-queue", "景区排队"), - ("/api/app/socket-token", "消息连接"), - ("/api/app/manual-live", "直播"), - ("/api/app/view-album", "直播素材"), - ("/api/app/media-album", "样片管理"), - ("/api/app/msg", "消息中心"), - ("/api/app/user/register-jpush-id", "消息推送"), - ("/api/app/training", "培训"), - ("/api/app/store/order", "订单"), - ("/api/app/scenic-admin/order", "订单"), - ("/api/app/store/analyse", "数据统计"), - ("/api/app/scenic-admin/analyse", "数据统计"), - ("/api/app/store", "门店"), - ("/api/app/v9", "账号登录"), - ("/api/yf-handset-app/account-deregister", "账号注销"), - ("/api/yf-handset-app/photog/order", "订单"), - ("/api/yf-handset-app/photog/task", "拍摄任务"), - ("/api/yf-handset-app/photog/analyse", "数据统计"), - ("/api/yf-handset-app/photog/cloud-driver", "云存储"), - ("/api/yf-handset-app/photog/travel-album", "旅拍相册"), - ("/api/yf-handset-app/photog/wallet", "钱包"), - ("/api/yf-handset-app/photog/point", "积分"), - ("/api/yf-handset-app/photog/scenic-spot", "打卡点"), - ("/api/yf-handset-app/photog/scenic", "景区"), - ("/api/yf-handset-app/photog/scenic-apply", "景区入驻"), - ("/api/yf-handset-app/photog/role-apply", "角色申请"), - ("/api/yf-handset-app/photog/loacation", "位置上报"), - ("/api/yf-handset-app/photog/report", "摄影师举报"), - ("/api/yf-handset-app/photog/sale-user", "销售员"), - ("/api/yf-handset-app/photog/cooperative-salers", "销售员"), - ("/api/yf-handset-app/photog/invite", "邀请"), - ("/api/yf-handset-app/photog/invite-info", "邀请"), - ("/api/yf-handset-app/photog/project", "套餐"), - ("/api/yf-handset-app/photog/offline-pay-collect", "线下收款"), - ("/api/yf-handset-app/photog/pay-code", "收款"), - ("/api/yf-handset-app/photog/pay-page-config", "收款"), - ("/api/yf-handset-app/photog/real-name", "实名认证"), - ("/api/yf-handset-app/photog/profile", "个人资料"), - ("/api/yf-handset-app/photog/schedule", "个人资料"), - ("/api/yf-handset-app/photog/userinfo-update-avatar", "个人资料"), - ("/api/yf-handset-app/userinfo", "个人资料"), - ("/api/yf-handset-app/userinfo-update", "个人资料"), - ("/api/yf-handset-app/userinfo-update-avatar-url", "个人资料"), - ("/api/yf-handset-app/role-permission", "账号权限"), - ("/api/app/config", "系统配置"), - ("/api/app/latest-version", "版本更新") - ] - return routes.first { path == $0.0 || path.hasPrefix($0.0 + "/") }?.1 ?? "通用接口" + /// 发起请求时立即输出路径和参数;响应记录携带同样参数,方便并发请求核对。 + static func message(path: String, params: Any, response: Any? = nil) -> String { + var values: [(String, Any)] = [("path", path), ("params", params)] + if let response { values.append(("response", response)) } + let fields = values.map { key, value in + " \"\(key)\": " + pretty(value).replacingOccurrences(of: "\n", with: "\n ") + } + return "{\n" + fields.joined(separator: ",\n") + "\n}" } - /// 请求、响应以及明确失败/取消使用同一标签结构,模块可由调用方显式指定。 - static func prefix(_ event: String, path: String, category: String? = nil) -> String { - "【\(category ?? module(for: path))-\(event)】" - } - - /// 为每个完整分段重复添加模块标签,保留正文、会话、事件 ID 及分段顺序。 - static func lines(_ message: String, sessionID: String, entryID: String, - fallbackModule: String) -> [String] { - let tag: String - let body: String - if message.hasPrefix("【"), let end = message.firstIndex(of: "】") { - tag = String(message[...end]) - let remainder = message[message.index(after: end)...] - body = remainder.hasPrefix(" ") ? String(remainder.dropFirst()) : String(remainder) - } else if let fields = try? JSONSerialization.jsonObject(with: Data(message.utf8)) as? [String: Any] { - let event = fields["event"] as? String ?? "" - let module: String - if event.hasPrefix("file_download.") { module = "素材下载" } - else if event.hasPrefix("file_upload.") { module = "成片上传" } - else if let path = fields["path"] as? String { module = Self.module(for: path) } - else { module = fallbackModule } - let kind: String - if event.hasSuffix("request.started") { kind = "Request" } - else if event.hasSuffix("response.received") { kind = "Response" } - else if event.hasSuffix("request.cancelled") { kind = "Cancelled" } - else if event.hasSuffix("request.failed") || event.hasSuffix("response.rejected") { kind = "Failure" } - else if event.hasSuffix("request.blocked") { kind = "Blocked" } - else { kind = "Event" } - tag = "【\(module)-\(kind)】" - body = message + /// 从真正发送的 URLRequest 读取业务入参,不混入 Header 或环境配置。 + static func parameters(_ request: URLRequest, includeBody: Bool = true) -> Any { + let query = queryParameters(request.url) + guard includeBody, let data = request.httpBody, !data.isEmpty else { return query } + let body: Any + if request.value(forHTTPHeaderField: "Content-Type")?.lowercased().contains("multipart/form-data") == true { + // 不读取或打印视频/图片文件内容;multipart 入参以表单元信息表示。 + body = ["content_type": "multipart/form-data", "bytes": data.count] } else { - tag = "【\(fallbackModule)-Event】" - body = message + body = payload(data) } - let chunks = DroneDockDiagnostics.chunks(body) - return chunks.enumerated().map { index, chunk in - "\(tag) session=\(sessionID) entry=\(entryID) part=\(index + 1)/\(chunks.count) \(chunk)" + return query.isEmpty ? body : ["query": query, "body": body] + } + + /// 保留重复参数和无值参数,避免诊断时丢失实际请求内容。 + static func queryParameters(_ url: URL?) -> [String: Any] { + let items = url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false)?.queryItems } ?? [] + var result: [String: Any] = [:] + for item in items { + let value: Any = item.value as Any? ?? NSNull() + if let previous = result[item.name] { + result[item.name] = (previous as? [Any] ?? [previous]) + [value] + } else { result[item.name] = value } } + return result + } + + /// 保留完整 JSON 类型;空正文为 null,非 JSON 文本作为字符串显示。 + static func payload(_ data: Data) -> Any { + guard !data.isEmpty else { return NSNull() } + return (try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed)) + ?? String(data: data, encoding: .utf8) as Any? ?? ["binary_bytes": data.count] + } + + /// 本地失败没有后端响应,明确使用 local_error,避免伪装成后端业务返回。 + static func failure(path: String, params: Any, kind: String, message: String) -> String { + self.message(path: path, params: params, response: ["local_error": ["kind": kind, "message": message]]) + } + + /// 将内部诊断记录转换为简洁输出;解码、页面、心跳、RTC 等事件不进入控制台。 + static func render(_ text: String) -> String? { + guard let fields = try? JSONSerialization.jsonObject(with: Data(text.utf8)) as? [String: Any] else { return nil } + if fields["event"] == nil, let path = fields["path"] as? String, let params = fields["params"] { + return message(path: path, params: params, response: fields["response"]) + } + let event = fields["event"] as? String ?? "" + let isRequest = event.hasSuffix("request.started") + let isResponse = event.hasSuffix("response.received") + let isFailed = event.hasSuffix("request.failed") + let isCancelled = event.hasSuffix("request.cancelled") + let isBlocked = event.hasSuffix("request.blocked") + guard isRequest || isResponse || isFailed || isCancelled || isBlocked else { return nil } + let url = (fields["url"] as? String).flatMap(URL.init(string:)) + guard let path = fields["path"] as? String ?? url?.path else { return nil } + var params: Any = fields["request_params"] ?? queryParameters(url) + if fields["request_params"] == nil, isRequest, let body = fields["body"], body as? String != "" { + params = body + } + if event.hasPrefix("file_upload."), isRequest { + params = fields.filter { ["bucket", "object_key", "bytes", "content_type"].contains($0.key) } + } + if isRequest { return message(path: path, params: params) } + if isResponse { + let body = fields["body"] ?? fields["bytes"].map { ["binary_bytes": $0] } as Any? ?? NSNull() + return message(path: path, params: params, response: body as? String == "" ? NSNull() : body) + } + let kind = isBlocked ? "blocked" : isCancelled ? "cancelled" : "network_failed" + let reason = fields["message"] as? String ?? (isBlocked ? "请求已在本地拦截,未发送" : isCancelled ? "请求已取消" : "请求失败,未收到响应") + return failure(path: path, params: params, kind: kind, message: reason) + } + + private static func pretty(_ value: Any) -> String { + guard let data = try? JSONSerialization.data(withJSONObject: value, + options: [.prettyPrinted, .sortedKeys, .fragmentsAllowed, .withoutEscapingSlashes]) else { return "null" } + return String(decoding: data, as: UTF8.self) } } diff --git a/suixinkan/Core/Networking/APIRedactedLog.swift b/suixinkan/Core/Networking/APIRedactedLog.swift index b1006c8..b9fee4b 100644 --- a/suixinkan/Core/Networking/APIRedactedLog.swift +++ b/suixinkan/Core/Networking/APIRedactedLog.swift @@ -1,49 +1,28 @@ import Foundation -/// 按模块生成可读的调试日志;只处理输出副本,不修改网络请求和业务响应。 +/// 沿用接口指定的正文脱敏策略生成简洁 JSON;只处理输出副本,不修改网络请求和响应。 nonisolated enum APIRedactedLog { private static let urlPattern = try? NSRegularExpression(pattern: #"https?://[^\s"<>]+"#, options: [.caseInsensitive]) - /// 输出方法、地址、查询参数及可选 JSON 请求体,不输出鉴权 Header。 + /// 保留接口原有脱敏策略,只修改日志展示结构。 static func request(_ request: URLRequest, category: String, includeBody: Bool) -> String { - var lines = [event("Request", for: request, category: category)] - if let url = request.url, - let items = URLComponents(url: url, resolvingAgainstBaseURL: false)?.queryItems, - !items.isEmpty { - lines.append("params: " + items.map { - "\($0.name)=\(isSensitive($0.name) ? "" : redactURLs(in: $0.value ?? ""))" - }.joined(separator: "&")) - } - if includeBody, let data = request.httpBody { - lines.append("body:\n" + body(data)) - } - return lines.joined(separator: "\n") + APIConsoleFormat.message(path: request.url?.path ?? "", params: parameters(request, includeBody: includeBody)) } - /// 输出 HTTP 状态及格式化的脱敏 JSON,包括业务失败或非 2xx 响应。 + /// 请求与回包共享参数,响应关闭正文记录时继续遵守原设置。 static func response(for request: URLRequest, response: URLResponse, data: Data, category: String, includeBody: Bool) -> String { - let status = (response as? HTTPURLResponse).map { String($0.statusCode) } ?? "unknown" - let payload = includeBody ? body(data) : "" - return event("Response", for: request, category: category) + " status=\(status)\n" + payload + let payload: Any + if !includeBody { payload = "" } + else if let object = try? JSONSerialization.jsonObject(with: data, options: .fragmentsAllowed) { payload = redact(object) } + else { payload = "" } + return APIConsoleFormat.message(path: request.url?.path ?? "", + params: parameters(request, includeBody: includeBody), response: payload) } - /// 生成请求、响应、失败和取消共用的模块标签与安全地址。 - static func event(_ event: String, for request: URLRequest, category: String) -> String { - let url = request.url.map { redactedURL($0, keepsQuery: true) } ?? "" - return "\(APIConsoleFormat.prefix(event, path: request.url?.path ?? "", category: category)) \(request.httpMethod ?? "REQUEST") \(url)" - } - - /// 非 JSON 正文可能包含凭证或服务端调试页面,不把原始文本写入控制台。 - private static func body(_ data: Data) -> String { - guard !data.isEmpty else { return "" } - guard let object = try? JSONSerialization.jsonObject(with: data, options: [.fragmentsAllowed]), - let formatted = try? JSONSerialization.data(withJSONObject: redact(object), - options: [.prettyPrinted, .sortedKeys, .fragmentsAllowed, .withoutEscapingSlashes]), - let text = String(data: formatted, encoding: .utf8) else { - return "" - } - return text + /// 脱敏只处理日志副本,原请求不受影响。 + static func parameters(_ request: URLRequest, includeBody: Bool) -> Any { + redact(APIConsoleFormat.parameters(request, includeBody: includeBody)) } /// 递归处理嵌套对象与数组,保留普通字段、空值及 JSON 类型。 diff --git a/suixinkan/Core/Networking/APIRequest.swift b/suixinkan/Core/Networking/APIRequest.swift index dd365de..27affb1 100644 --- a/suixinkan/Core/Networking/APIRequest.swift +++ b/suixinkan/Core/Networking/APIRequest.swift @@ -23,7 +23,7 @@ nonisolated struct APIRequest { var body: AnyEncodable? /// 控制普通正文日志;机巢范围按用户要求始终记录完整请求和响应。 var logsPayload: Bool - /// 为指定模块输出带标签的脱敏日志;隐藏凭证字段和响应中媒体 URL 的查询参数。 + /// 为指定模块启用原有正文脱敏策略;隐藏凭证及媒体 URL 查询参数,不增加控制台标签。 var redactedLogCategory: String? /// 创建一个 API 请求,并把可编码请求体擦除为统一的 AnyEncodable。 diff --git a/suixinkan/Core/Networking/DroneDockDiagnostics.swift b/suixinkan/Core/Networking/DroneDockDiagnostics.swift index d4e5a7a..946991d 100644 --- a/suixinkan/Core/Networking/DroneDockDiagnostics.swift +++ b/suixinkan/Core/Networking/DroneDockDiagnostics.swift @@ -1,21 +1,13 @@ import Foundation -import OSLog /// 机巢联调日志:按用户要求在 Debug 与 Release 控制台原样记录字段,不做脱敏。 enum DroneDockDiagnostics { - private static let logger = Logger(subsystem: "com.yuanzhixiang.suixinkan", category: "DroneDock") - private static let sessionID = String(UUID().uuidString.prefix(8)) - - /// 按 UTF-8 字节分段,避免系统日志截断大响应;每段携带同一事件 ID 和序号。 + /// 与其它模块共用简洁出口;内部诊断事件留作测试/业务核对,不在控制台刷屏。 static func write(_ message: String) { - let entry = String(UUID().uuidString.prefix(8)) - for line in APIConsoleFormat.lines(message, sessionID: sessionID, entryID: entry, - fallbackModule: "机巢工作台") { - logger.notice("\(line, privacy: .public)") - } + APIConsoleDiagnostics.writeDroneDock(message) } - /// 页面、业务与 RTC 事件以结构化字段记录。 + /// 构造内部结构化事件;控制台仅选择请求、响应及本地传输失败输出。 static func event(_ name: String, taskID: Int? = nil, fields: [String: Any] = [:]) { var fields = fields fields["task_id"] = taskID @@ -64,7 +56,7 @@ enum DroneDockDiagnostics { return fields } - /// 单段最多 600 字节,长 JSON 可按 entry 和 part 拼回完整响应。 + /// 独立运行时的系统日志按最多 600 字节分段;Xcode 控制台直接输出完整 JSON。 static func chunks(_ text: String) -> [String] { var result: [String] = [] var current = "" @@ -136,6 +128,7 @@ struct DroneDockRequestTrace { fields["method"] = request.httpMethod fields["url"] = request.url?.absoluteString fields["request_headers"] = request.allHTTPHeaderFields ?? [:] + fields["request_params"] = APIConsoleFormat.parameters(request) fields["app_version"] = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as? String fields["app_build"] = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as? String #if DEBUG diff --git a/suixinkan/Features/DroneDock/Services/DroneDockShootingRealtimeSession.swift b/suixinkan/Features/DroneDock/Services/DroneDockShootingRealtimeSession.swift index 53f84e7..47955a8 100644 --- a/suixinkan/Features/DroneDock/Services/DroneDockShootingRealtimeSession.swift +++ b/suixinkan/Features/DroneDock/Services/DroneDockShootingRealtimeSession.swift @@ -267,6 +267,7 @@ final class DroneDockShootingRealtimeSession { private func log(_ event: String, fields: [String: Any] = [:]) { DroneDockDiagnostics.event(event, taskID: taskID, - fields: fields.merging(["transport": "websocket", "path": "/api/app/airport/shooting", "source": source]) { _, new in new }) + fields: fields.merging(["transport": "websocket", "path": "/wss", "source": source, + "request_params": event == "request.started" ? fields["body"] ?? [:] : ["id": taskID]]) { _, new in new }) } } diff --git a/suixinkan/UI/Orders/OrderCardCell.swift b/suixinkan/UI/Orders/OrderCardCell.swift index 7052427..42947d4 100644 --- a/suixinkan/UI/Orders/OrderCardCell.swift +++ b/suixinkan/UI/Orders/OrderCardCell.swift @@ -87,7 +87,10 @@ final class OrderCardCell: UITableViewCell { createdAtLabel.text = order.createdAt.isEmpty ? "--" : order.createdAt typeChip.apply(text: order.orderTypeLabel) - let showRefund = !hideWriteActions && (order.orderStatus == 18 || order.orderStatus == 30) && order.orderType != 19 + let showRefund = !hideWriteActions && order.orderType != 19 && ( + order.orderStatus == 18 || order.orderStatus == 30 + || (order.orderType == 25 && order.orderStatus == 20) + ) let showVerify = !hideWriteActions && ( (order.photoTravel?.needCheckIn == true && order.orderStatus != 30) || order.orderType == 19 ) diff --git a/suixinkanTests/APIClientConsoleLoggingTests.swift b/suixinkanTests/APIClientConsoleLoggingTests.swift index 84114d0..604cc14 100644 --- a/suixinkanTests/APIClientConsoleLoggingTests.swift +++ b/suixinkanTests/APIClientConsoleLoggingTests.swift @@ -5,8 +5,33 @@ import XCTest /// 验证统一控制台日志覆盖普通、裸 JSON 和文件上传入口,全部使用内存响应。 @MainActor final class APIClientConsoleLoggingTests: XCTestCase { - /// 普通网络出口根据实际请求模块生成成对标签,兼容系统日志二次分段。 - func testKnownBusinessRequestUsesModuleRequestAndResponseLabels() async throws { + /// 机巢内部诊断通过真正控制台格式化入口后,POST 回包仍带原入参且没有重复解析事件。 + func testDroneResponseKeepsOriginalQueryAndBodyWithoutDiagnosticFields() async throws { + var logs: [String] = [] + let session = MockURLSession(responses: [try TestJSON.errorEnvelope(code: 100099, msg: "模拟业务拒绝")]) + let client = APIClient(environment: .testing, session: session, droneDockLogSink: { + if let text = APIConsoleFormat.render($0) { logs.append(text) } + }) + do { + let _: EmptyPayload = try await client.send(APIRequest(method: .post, + path: "/api/yf-handset-app/photog/multi-plane/pay-code", + queryItems: [.init(name: "scenic_id", value: "128")], body: ["project_id": 386])) + XCTFail("应保留业务拒绝") + } catch {} + XCTAssertEqual(logs.count, 2) + let start = try json(logs[0]) + let end = try json(logs[1]) + let params = try XCTUnwrap(end["params"] as? [String: Any]) + XCTAssertEqual((params["query"] as? [String: String])?["scenic_id"], "128") + XCTAssertEqual((params["body"] as? [String: Int])?["project_id"], 386) + XCTAssertTrue(NSDictionary(dictionary: params).isEqual(to: try XCTUnwrap(start["params"] as? [String: Any]))) + XCTAssertEqual(Set(end.keys), ["path", "params", "response"]) + XCTAssertEqual((end["response"] as? [String: Any])?["code"] as? Int, 100099) + XCTAssertEqual(session.requests.count, 1) + } + + /// 业务拒绝只输出一次原始回包,没有模块标签和重复失败事件。 + func testBusinessFailureLogsOnlyRequestAndOriginalResponse() async throws { var logs: [String] = [] let payload = try TestJSON.errorEnvelope(code: 100099, msg: "测试订单不存在") let client = APIClient(environment: .testing, session: MockURLSession(responses: [payload]), @@ -15,13 +40,12 @@ final class APIClientConsoleLoggingTests: XCTestCase { let _: EmptyPayload = try await client.send(APIRequest(method: .get, path: "/api/app/store/order/detail")) XCTFail("应保留业务拒绝") } catch {} - XCTAssertTrue(logs[0].hasPrefix("【订单-Request】 GET")) - XCTAssertTrue(logs[1].hasPrefix("【订单-Response】 GET")) - XCTAssertTrue(logs[2].hasPrefix("【订单-Failure】 GET")) - for text in logs { - let lines = APIConsoleFormat.lines(text, sessionID: "S", entryID: "E", fallbackModule: "通用接口") - XCTAssertTrue(lines.allSatisfy { $0.hasPrefix("【订单-") }) - } + XCTAssertEqual(logs.count, 2) + XCTAssertEqual(Set(try json(logs[0]).keys), ["path", "params"]) + let received = try json(logs[1]) + XCTAssertEqual(Set(received.keys), ["path", "params", "response"]) + XCTAssertEqual((received["response"] as? [String: Any])?["code"] as? Int, 100099) + XCTAssertEqual(received["path"] as? String, "/api/app/store/order/detail") } /// 请求与大响应完整保留;multipart 记录大小,不把文件字节打印到控制台。 @@ -36,19 +60,23 @@ final class APIClientConsoleLoggingTests: XCTestCase { try await send(kind, client: client) XCTAssertEqual(logs.count, 2, kind.rawValue) let request = try XCTUnwrap(logs.first) - XCTAssertTrue(request.contains("【通用接口-Request】 POST")) + XCTAssertEqual(Set(try json(request).keys), ["path", "params"]) XCTAssertTrue(request.contains("/api/mock/release-logging")) - XCTAssertTrue(request.contains("test-auth-token")) + XCTAssertFalse(request.contains("test-auth-token")) + XCTAssertEqual(session.requests.first?.value(forHTTPHeaderField: "token"), "test-auth-token") if kind == .multipart { - XCTAssertTrue(request.contains("multipart/form-data:")) + XCTAssertTrue(request.contains("multipart/form-data")) XCTAssertFalse(request.contains("BINARY-FILE-CONTENTS")) } else { XCTAssertTrue(request.contains("END-OF-REQUEST")) - if kind == .typed { XCTAssertTrue(request.contains("page=2")) } + if kind == .typed { + let params = try XCTUnwrap(try json(request)["params"] as? [String: Any]) + XCTAssertEqual((params["query"] as? [String: String])?["page"], "2") + } } let received = try XCTUnwrap(logs.last) - XCTAssertTrue(received.contains("【通用接口-Response】 POST")) - XCTAssertTrue(received.contains("status=200")) + XCTAssertEqual(Set(try json(received).keys), ["path", "params", "response"]) + XCTAssertFalse(received.contains("status=200")) XCTAssertTrue(received.contains(detail), "完整响应不能因为长度被截断") XCTAssertEqual(session.requests.count, 1) } @@ -65,13 +93,15 @@ final class APIClientConsoleLoggingTests: XCTestCase { do { try await send(kind, client: client); XCTFail("失败必须保留") } catch {} XCTAssertEqual(logs.count, 2, kind.rawValue) let cancelled = error is CancellationError || (error as? URLError)?.code == .cancelled - XCTAssertTrue(logs.last?.contains(cancelled ? "【通用接口-Cancelled】" : "【通用接口-Failure】") == true) - XCTAssertFalse(logs.joined().contains("【通用接口-Response】")) + let response = try XCTUnwrap(try json(logs[1])["response"] as? [String: Any]) + let local = try XCTUnwrap(response["local_error"] as? [String: String]) + XCTAssertEqual(local["kind"], cancelled ? "cancelled" : "network_failed") + XCTAssertNil(response["code"]) } } } - /// HTTP、业务和解析失败都先记录原始回包,再记录 Failure,保持原有抛错行为。 + /// HTTP、业务和解析失败保留原始回包且不重复打印错误,保持原有抛错行为。 func testEveryRequestEntryLogsRejectedAndMalformedResponses() async throws { for kind in RequestKind.allCases { for (data, status) in [ @@ -83,14 +113,17 @@ final class APIClientConsoleLoggingTests: XCTestCase { let client = APIClient(environment: .testing, session: MockURLSession(responses: [data], statusCode: status), debugLogSink: { logs.append($0) }) do { try await send(kind, client: client); XCTFail("失败必须抛出") } catch {} - XCTAssertEqual(logs.count, 3, kind.rawValue) - XCTAssertTrue(logs[1].contains("【通用接口-Response】")) - XCTAssertTrue(logs[1].contains("status=\(status)")) - XCTAssertTrue(logs[2].contains("【通用接口-Failure】")) + XCTAssertEqual(logs.count, 2, kind.rawValue) + XCTAssertNotNil(try json(logs[1])["response"]) + XCTAssertFalse(logs[1].contains("local_error")) } } } + private func json(_ text: String) throws -> [String: Any] { + try XCTUnwrap(JSONSerialization.jsonObject(with: Data(text.utf8)) as? [String: Any]) + } + /// 三种统一网络发送入口。 private enum RequestKind: String, CaseIterable { case typed, rawJSON, multipart } diff --git a/suixinkanTests/APIConsoleFormatTests.swift b/suixinkanTests/APIConsoleFormatTests.swift index d2cbde8..7f339d1 100644 --- a/suixinkanTests/APIConsoleFormatTests.swift +++ b/suixinkanTests/APIConsoleFormatTests.swift @@ -2,91 +2,94 @@ import Foundation import XCTest @testable import suixinkan -/// 验证真实控制台出口使用的模块标签、异常分类和完整分段,不连接网络。 +/// 验证控制台只输出路径、入参和返回,保留原始 JSON 类型及长内容。 final class APIConsoleFormatTests: XCTestCase { - /// 两位工程师的机巢接口归入同一模块;相邻路径不能被前缀误判。 - func testModulesFollowBusinessRoutesAndExplicitCategory() { - let paths = [ - "/api/app/airport/shooting": "机巢工作台", - "/api/yf-handset-app/photog/multi-plane/tasks/create": "机巢工作台", - "/api/app/scenic-media/session-detail": "景区空境库", - "/api/app/config/get-sts-token": "文件上传", - "/api/app/config/areas": "系统配置", - "/api/app/store/order/list": "订单", - "/api/app/store/analyse/daily": "数据统计", - "/api/yf-handset-app/photog/wallet/summary": "钱包", - "/api/app/scenic-queue/home": "景区排队", - "/api/app/v9/login": "账号登录", - "/api/app/airport-other": "通用接口" - ] - for (path, module) in paths { - for kind in ["Request", "Response"] { - XCTAssertEqual(APIConsoleFormat.prefix(kind, path: path), "【\(module)-\(kind)】") - } - } - XCTAssertEqual(APIConsoleFormat.prefix("Request", path: "/api/mock", category: "自定义模块"), - "【自定义模块-Request】") + func testReadableJSONContainsOnlyPathParamsAndResponse() throws { + let text = APIConsoleFormat.message(path: "/api/app/airport/shooting", params: ["id": "501", "live_battery": "0"], + response: ["code": 100000, "data": ["enabled": true, "battery": 0], "msg": "success"]) + let value = try object(text) + XCTAssertEqual(Set(value.keys), ["path", "params", "response"]) + XCTAssertEqual(value["path"] as? String, "/api/app/airport/shooting") + XCTAssertEqual(value["params"] as? [String: String], ["id": "501", "live_battery": "0"]) + XCTAssertEqual((value["response"] as? [String: Any])?["code"] as? Int, 100000) + XCTAssertTrue(text.hasPrefix("{\n \"path\":")) + XCTAssertTrue(text.contains("\n \"code\"")) + XCTAssertEqual(APIConsoleFormat.render(text), text) } - /// 机巢、空境、文件传输和页面事件都带统一标签,不将异常或解析事件伪装成原始响应。 - func testStructuredEventLabelsPreserveOriginalPayload() throws { - let cases: [(String, String?, String)] = [ - ("request.started", "/api/app/airport/shooting", "机巢工作台-Request"), - ("response.received", "/api/app/scenic-media/sessions", "景区空境库-Response"), - ("response.rejected", "/api/app/airport/shoot", "机巢工作台-Failure"), - ("request.failed", "/api/app/airport/shoot", "机巢工作台-Failure"), - ("request.cancelled", "/api/app/airport/shooting", "机巢工作台-Cancelled"), - ("request.blocked", "/api/app/airport/shoot", "机巢工作台-Blocked"), - ("response.decoded", "/api/app/airport/shooting", "机巢工作台-Event"), - ("file_download.request.started", nil, "素材下载-Request"), - ("file_upload.response.received", nil, "成片上传-Response"), - ("navigation.open_task", nil, "机巢工作台-Event") - ] - for (event, path, expected) in cases { - var fields: [String: Any] = ["event": event, "token": "TEST-TOKEN"] - fields["path"] = path - let original = DroneDockDiagnostics.json(fields) - let lines = APIConsoleFormat.lines(original, sessionID: "SESSION", entryID: "ENTRY", fallbackModule: "机巢工作台") - XCTAssertTrue(lines.allSatisfy { $0.hasPrefix("【\(expected)】 session=SESSION entry=ENTRY part=") }) - XCTAssertEqual(try restoredBody(lines), original) + func testQueryAndBodyPreserveCollisionsDuplicateKeysAndNulls() throws { + var request = URLRequest(url: URL(string: "https://example.invalid/api/read?id=1&id=2&empty&name=%E4%B8%AD%E6%96%87")!) + request.httpBody = Data(#"{"id":3,"flag":false,"value":null}"#.utf8) + let params = try XCTUnwrap(APIConsoleFormat.parameters(request) as? [String: Any]) + let query = try XCTUnwrap(params["query"] as? [String: Any]) + XCTAssertEqual(query["id"] as? [String], ["1", "2"]) + XCTAssertTrue(query["empty"] is NSNull) + XCTAssertEqual(query["name"] as? String, "中文") + let body = try XCTUnwrap(params["body"] as? [String: Any]) + XCTAssertEqual(body["id"] as? Int, 3) + XCTAssertEqual(body["flag"] as? Bool, false) + XCTAssertTrue(body["value"] is NSNull) + } + + func testDiagnosticEnvelopeDoesNotReachConsoleButOriginalResponseDoes() throws { + let body: [String: Any] = ["code": 100000, "data": ["token": "MOCK-TOKEN", "sn_number": "MOCK-SN", "list": [1, 2]]] + let text = DroneDockDiagnostics.json(["event": "response.received", "path": "/api/app/airport/shooting", + "method": "GET", "request_id": "INTERNAL", "elapsed_ms": 123, "request_headers": ["token": "HEADER-TOKEN"], + "app_version": "1.0.0", "source": "local_simulation", "request_params": ["id": "501"], "body": body]) + let rendered = try XCTUnwrap(APIConsoleFormat.render(text)) + let value = try object(rendered) + XCTAssertEqual(Set(value.keys), ["path", "params", "response"]) + XCTAssertEqual(value["params"] as? [String: String], ["id": "501"]) + XCTAssertTrue(NSDictionary(dictionary: try XCTUnwrap(value["response"] as? [String: Any])).isEqual(to: body)) + for extra in ["HEADER-TOKEN", "INTERNAL", "request_headers", "app_version", "source", "elapsed_ms", "session=", "entry=", "part=", "【"] { + XCTAssertFalse(rendered.contains(extra), extra) } } - /// 每段都有标签,长中文、emoji 和原值无损保留,便于过滤后仍可完整重组。 - func testLongStructuredAndPlainMessagesRetainLabelsOnEveryChunk() throws { - let value = String(repeating: "完整字段😀\n", count: 300) + "END-OF-BODY" - let structured = DroneDockDiagnostics.json(["event": "response.received", "path": "/api/app/airport/live", - "body": ["token": "TEST-TOKEN", "detail": value]]) - for (message, tag, expectedBody) in [ - (structured, "【机巢工作台-Response】", structured), - ("【订单-Response】 " + value, "【订单-Response】", value) - ] { - let lines = APIConsoleFormat.lines(message, sessionID: "SESSION", entryID: "ENTRY", fallbackModule: "通用接口") - XCTAssertGreaterThan(lines.count, 1) - for (index, line) in lines.enumerated() { - XCTAssertTrue(line.hasPrefix("\(tag) session=SESSION entry=ENTRY part=\(index + 1)/\(lines.count) ")) - XCTAssertFalse(line.contains("[API]")) - XCTAssertFalse(line.contains("[DroneDock]")) - XCTAssertFalse(line.contains("")) - } - XCTAssertEqual(try restoredBody(lines), expectedBody) + func testPageHeartbeatRTCAndParsedResultEventsAreSilent() { + for event in ["page.appeared", "websocket.pong", "websocket.state", "shooting.snapshot_applied", "rtc.callback", "response.decoded", "response.rejected"] { + XCTAssertNil(APIConsoleFormat.render(DroneDockDiagnostics.json(["event": event, "path": "/api/app/airport/shooting", "body": ["id": 1]]))) + } + XCTAssertNil(APIConsoleFormat.render("plain diagnostic")) + } + + func testLongJSONStringsArraysAndTextAreNotTruncatedOrStringified() throws { + let text = String(repeating: "长字段中文😀\n", count: 1000) + "END-OF-BODY" + for payload: Any in [["detail": text], [1, 2, 3], NSNull(), "网关异常"] { + let data = try JSONSerialization.data(withJSONObject: payload, options: .fragmentsAllowed) + let rendered = APIConsoleFormat.message(path: "/api/read", params: [:], response: APIConsoleFormat.payload(data)) + let value = try XCTUnwrap(try object(rendered)["response"]) + XCTAssertEqual(DroneDockDiagnostics.json(value), DroneDockDiagnostics.json(payload)) } } - /// 未知事件及空文本仍完整输出,不因为格式识别失败而丢失日志。 - func testUnstructuredFallbackDoesNotDropMessages() throws { - for text in ["", "plain diagnostic", "{invalid JSON", "【incomplete"] { - let lines = APIConsoleFormat.lines(text, sessionID: "S", entryID: "E", fallbackModule: "通用接口") - XCTAssertTrue(lines[0].hasPrefix("【通用接口-Event】")) - XCTAssertEqual(try restoredBody(lines), text) + func testLocalFailuresAreClearlyNotBackendResponses() throws { + for event in ["request.failed", "request.cancelled", "request.blocked"] { + let raw = DroneDockDiagnostics.json(["path": "/api/app/airport/shoot", "event": event, + "request_params": ["id": 501], "message": "模拟本地失败"]) + let value = try object(XCTUnwrap(APIConsoleFormat.render(raw))) + let response = try XCTUnwrap(value["response"] as? [String: Any]) + XCTAssertNotNil(response["local_error"]) + XCTAssertNil(response["code"]) + XCTAssertEqual(value["params"] as? [String: Int], ["id": 501]) } } - private func restoredBody(_ lines: [String]) throws -> String { - try lines.map { line in - let part = try XCTUnwrap(line.range(of: " part=")) - let start = try XCTUnwrap(line[part.upperBound...].firstIndex(of: " ")) - return String(line[line.index(after: start)...]) - }.joined() + func testSocketAndFileTransferUseActualPaths() throws { + let socket = DroneDockDiagnostics.json(["event": "response.received", "path": "/wss", "request_params": ["id": 501], + "body": ["code": 0, "data": ["action": "app_airport_shooting_updated"]]]) + let value = try object(XCTUnwrap(APIConsoleFormat.render(socket))) + XCTAssertEqual(value["path"] as? String, "/wss") + XCTAssertEqual((value["response"] as? [String: Any])?["code"] as? Int, 0) + let file = DroneDockFileTransferTrace(operation: "file_download", method: "GET", + remoteURL: URL(string: "https://example.invalid/mock.mp4?signature=MOCK")) + let download = try object(XCTUnwrap(APIConsoleFormat.render(file.message("response.received", fields: ["bytes": 2048])))) + XCTAssertEqual(download["path"] as? String, "/mock.mp4") + XCTAssertEqual(download["params"] as? [String: String], ["signature": "MOCK"]) + XCTAssertEqual(download["response"] as? [String: Int], ["binary_bytes": 2048]) + } + + private func object(_ text: String) throws -> [String: Any] { + try XCTUnwrap(JSONSerialization.jsonObject(with: Data(text.utf8)) as? [String: Any]) } } diff --git a/suixinkanTests/OrderCardCellRefundVisibilityTests.swift b/suixinkanTests/OrderCardCellRefundVisibilityTests.swift new file mode 100644 index 0000000..5223c48 --- /dev/null +++ b/suixinkanTests/OrderCardCellRefundVisibilityTests.swift @@ -0,0 +1,133 @@ +import UIKit +import XCTest +@testable import suixinkan + +/// 使用真实订单卡片与本地 JSON 验证退款入口的状态、类型及只读限制。 +@MainActor +final class OrderCardCellRefundVisibilityTests: XCTestCase { + func testPaidMultiPointAerialOrderShowsRefund() throws { + let cell = makeCell() + + try configure(cell, orderType: 25, orderStatus: 20) + + try assertRefundVisible(true, in: cell) + } + + func testReadOnlyMultiPointAerialOrdersHideRefund() throws { + let cell = makeCell() + + for status in [18, 20, 30] { + try configure(cell, orderType: 25, orderStatus: status, readOnly: true) + try assertRefundVisible(false, in: cell) + } + } + + func testOtherPaidOrderTypesKeepRefundHidden() throws { + let cell = makeCell() + + for type in [11, 14] { + try configure(cell, orderType: type, orderStatus: 20) + try assertRefundVisible(false, in: cell) + } + } + + func testMultiTravelOrdersKeepRefundHidden() throws { + let cell = makeCell() + + for status in [18, 20, 30] { + try configure(cell, orderType: 19, orderStatus: status) + try assertRefundVisible(false, in: cell) + } + } + + func testDepositPaidAndCompletedOrdersKeepRefundVisible() throws { + let cell = makeCell() + + for type in [11, 14, 25] { + for status in [18, 30] { + try configure(cell, orderType: type, orderStatus: status) + try assertRefundVisible(true, in: cell) + } + } + } + + func testOtherMultiPointAerialStatusesHideRefund() throws { + let cell = makeCell() + + for status in [0, 10, 40, 50] { + try configure(cell, orderType: 25, orderStatus: status) + try assertRefundVisible(false, in: cell) + } + } + + func testReusedCellUpdatesRefundVisibility() throws { + let cell = makeCell() + + try configure(cell, orderType: 25, orderStatus: 20, readOnly: true) + try assertRefundVisible(false, in: cell) + + try configure(cell, orderType: 25, orderStatus: 20) + try assertRefundVisible(true, in: cell) + + try configure(cell, orderType: 25, orderStatus: 50) + try assertRefundVisible(false, in: cell) + + try configure(cell, orderType: 14, orderStatus: 30) + try assertRefundVisible(true, in: cell) + + try configure(cell, orderType: 14, orderStatus: 20) + try assertRefundVisible(false, in: cell) + } + + private func makeCell() -> OrderCardCell { + OrderCardCell(style: .default, reuseIdentifier: OrderCardCell.reuseIdentifier) + } + + private func configure( + _ cell: OrderCardCell, + orderType: Int, + orderStatus: Int, + readOnly: Bool = false + ) throws { + let json = """ + {"order_number":"refund-visibility-test","order_type":\(orderType),"order_status":\(orderStatus)} + """ + let order = try JSONDecoder().decode(OrderEntity.self, from: Data(json.utf8)) + cell.configure( + order: order, + hideWriteActions: readOnly, + actions: OrderCardActions(), + showOrderSource: false, + sourceSelection: nil + ) + } + + /// 同时检查退款按钮及其父视图,避免操作行被隐藏时误判为可见。 + private func assertRefundVisible( + _ expected: Bool, + in cell: OrderCardCell, + file: StaticString = #filePath, + line: UInt = #line + ) throws { + let button = try XCTUnwrap(refundButton(in: cell), file: file, line: line) + var view: UIView? = button + var visible = true + while let current = view { + visible = visible && !current.isHidden + view = current.superview + } + XCTAssertEqual(visible, expected, file: file, line: line) + } + + private func refundButton(in view: UIView) -> OrderActionButton? { + if let button = view as? OrderActionButton, button.title(for: .normal) == "退款" { + return button + } + for subview in view.subviews { + if let button = refundButton(in: subview) { + return button + } + } + return nil + } +} diff --git a/suixinkanTests/ScenicMaterialsRequestLoggingTests.swift b/suixinkanTests/ScenicMaterialsRequestLoggingTests.swift index e973852..1e715c1 100644 --- a/suixinkanTests/ScenicMaterialsRequestLoggingTests.swift +++ b/suixinkanTests/ScenicMaterialsRequestLoggingTests.swift @@ -154,8 +154,8 @@ final class ScenicMaterialsRequestLoggingTests: XCTestCase { )) XCTAssertEqual(logs.count, 2) - XCTAssertTrue(logs[0].contains("【景区空境库-Request】 POST")) - XCTAssertTrue(logs[1].contains("status=200")) + XCTAssertEqual(try loggedJSON(logs[0])["path"] as? String, "/api/mock/logging-policy") + XCTAssertNotNil(try loggedJSON(logs[1])["response"]) XCTAssertTrue(logs[1].contains("")) XCTAssertFalse(logs.joined().contains("request-private-note")) XCTAssertFalse(logs.joined().contains("response-private-note")) @@ -191,8 +191,9 @@ final class ScenicMaterialsRequestLoggingTests: XCTestCase { "query-private-url-signature", "query-private-fragment", "query-private-authorization"] { XCTAssertFalse(combined.contains(secret), "请求日志泄漏敏感值:\(secret)") } - XCTAssertTrue(combined.contains("page=4")) - XCTAssertTrue(combined.contains("resource=https://media.example.com/clip.mp4")) + let params = try XCTUnwrap(try loggedJSON(logs[0])["params"] as? [String: String]) + XCTAssertEqual(params["page"], "4") + XCTAssertEqual(params["resource"], "https://media.example.com/clip.mp4") let sentRequest = try XCTUnwrap(session.requests.first) let sentURL = try XCTUnwrap(sentRequest.url) let sentItems = try XCTUnwrap(URLComponents(url: sentURL, resolvingAgainstBaseURL: false)?.queryItems) diff --git a/朱工-拍摄任务WebSocket实时数据与HTTP兜底接入需求.md b/朱工-拍摄任务WebSocket实时数据与HTTP兜底接入需求.md index 1afb074..6cf63ea 100644 --- a/朱工-拍摄任务WebSocket实时数据与HTTP兜底接入需求.md +++ b/朱工-拍摄任务WebSocket实时数据与HTTP兜底接入需求.md @@ -83,7 +83,7 @@ App 停止调用 `shooting` 后,服务端仍主动更新 Redis 并推送: - 离页/后台停止读取、重连和心跳,尽力发送 `311`,最多一秒后关闭连接。返回前台重新获取快照和票据。 - `100098` 刷新 Socket 票据,不注销 App;明确无权限/任务不存在或 HTTP 鉴权失败停止自动读取、锁定操作并提示。通用 `100099` 不一概当作权限错误。 - 保留手动刷新、手动操作后的一次状态核对。Socket 恢复不会重发任何飞控 POST。 -- 控制台 WS 请求/推送沿用 `【机巢工作台-Request】` / `【机巢工作台-Response】`,以 `transport=websocket` 区分;取票 HTTP 为 `【消息连接-Request/Response】`。模拟测试的 Socket 日志标记 `source=local_simulation`。 +- 2026-11-03 按最新要求简化控制台:WS 只输出 `path=/wss`、`params` 与 `response` 的缩进 JSON;取票路径为 `/api/app/socket-token`。不再输出模块标签、心跳、重连或其它诊断元数据。内存测试的模拟来源仍记录在内部测试事件中,不表示真实后端成功。 ### 0.6 模拟器验证结果 diff --git a/机巢工作台页面接口对接记录.md b/机巢工作台页面接口对接记录.md index 9fbb377..8664f69 100644 --- a/机巢工作台页面接口对接记录.md +++ b/机巢工作台页面接口对接记录.md @@ -1,11 +1,18 @@ # 机巢工作台页面接口对接记录 -> 更新日期:2026-11-02 +> 更新日期:2026-11-03 > **最新 Release 授权(覆盖下文历史禁飞范围):**用户已明确回复“开放 Release 真实操作,Debug 保持拦截”。Release 开放真实创建、召唤、开拍、安全控制及手动图传,使用现有身份、门禁和防重校验;Debug 仍拦截。代理仅用模拟器/隔离替身验证,真实操作由用户自行测试。 > **Debug 禁飞限制(Release 以本页最新授权为准):**按用户最新要求,调试不得向真实无人机下发指令。Debug 准备页禁止真实创建和召唤;统一网络层在传输前阻断 `tasks/create`、机场操作请求(包括 `shoot/start-shoot/command/live` 及未确认的新接口)。状态 GET 仅允许已确认的 `home/plane-status/shooting/status`,其中实时采集参数强制为 `live_battery=0` 或 `live_metrics=0`。只有完全不联网的 Mock 传输可以验证原始请求合同。下文任务 6、11 的真实召唤均发生于此限制之前,不作为继续真实联调的授权。 > 核对范围:当前工作区。准备页使用张工 `project-info` 和朱工 `plane-status`;“确认并召唤”按 `project-info → tasks/create → shoot` 执行,召唤业务成功后进入任务页;2026-11-02 按用户要求恢复 `shooting` 前台轮询:进入及回前台立即读取,之后每次请求结束按 `poll_hint_ms` 延时再读,默认 5 秒、限制 2~30 秒;离页/后台停止,刷新保留旧快照。准备页 `plane-status` 保持轮询。最新 2026-10-29 17:18–17:19 模拟器实操新建任务 11,再以 `{id:11,restart:false}` 召唤;两个接口均成功,绑定飞机 61、航线任务 1931。17:19:04 首次查询允许开始,17:19:59 手动回查已为航线执行失败、禁止拍摄,当前待朱工定位 1931 失败原因与自动派机条件(见 7.7.3)。任务 6 / 航线 1926 的先前失败记录保留。召唤回执的“已到达”不是物理验证,本轮未调用开始拍摄或控制接口。任务 2 的参数、订单类型及机场状态失败保留为历史,原因不因新任务成功而作推断。`workbench`、定位请求已停用;`start-shoot` 已实现纯本地模拟(见 7.6.2),真实开拍入口保持禁用;`command` 已实现纯本地模拟(见 7.6.3),真实控制保持禁用;图传已于 2026-11-02 接入火山 RTC 参数与播放器(Release 手动开启,Debug 保持拦截,真实画面待用户联调,见 7.6.5);2026-10-30 已完成真实成片上传、保存及回查,见 9.4。 > 用途:记录每个页面实际调用的接口、提供人、调用时机、请求参数和返回 JSON,供 iOS 与后端持续联调。 +## 2026-11-03:控制台仅输出路径、入参和返回 JSON + +- 当前格式为缩进 JSON:`path`、`params`、`response`;请求发送时先输出前两项,响应到达后附完整后端 Envelope。HTTP、WebSocket 都适用,WebSocket 的 `path` 为 `/wss`。 +- 不再输出模块标签、session/entry/part、Header、耗时、版本和页面/心跳/RTC 事件。业务错误不重复打印解析失败信息;本地无响应错误放在 `response.local_error`。 +- Xcode Run/Attach 下完整写入 Debug/Release 调试控制台,独立运行保留系统日志。网络行为和 Debug 禁飞保护不变。本节覆盖下文历史日志格式描述。 +- 验证:58 项不同模拟器测试通过;Release 无签名编译通过。未调用真实无人机操作。 + ## 2026-11-02:任务 WebSocket 已接入,异常时 HTTP 兜底 - 朱工已补齐 `/wss`、`socket-token`、`310` 订阅、`311` 取消及 `app_airport_shooting_updated` 完整快照协议。HTTP 与推送按 `execution_batch/state_version` 比较,使用同一 `order_flight_task.id`。