合并 9.9.1 机巢工作台与拍摄交付流程 #1

Merged
lujiuyin merged 70 commits from dev_9_9_1 into main 2026-11-18 07:05:44 +00:00
170 changed files with 12736 additions and 1 deletions
Showing only changes of commit 15602f8a82 - Show all commits
@@ -0,0 +1,30 @@
朱工您好,2026-11-05 安卓 Release 真机测试有两项后端问题需要继续核查。
现场:App 9.9.1.20261105_162119,任务 36,execution_batch=2450。以下时间为北京时间。
一、首点到达阶段与开拍门禁不一致
16:28:44.874,GET shooting 的 state_version=7:
- ui.phase=arrived_pending_start,标题“无人机已到达 是否开始拍摄?”
- flight_control.state=executing,pause_reason=arrival_wait
- is_airborne=null,drone_in_dock=null
- task.status=20,order_flight_task.status=20
- execute_gate.can_execute=false,code=going_to_spot,primary_action=blocked
- gate.message=“无人机正在前往点位,到达首点后再开始拍摄”
16:28:51.249,下一份 GET shooting 的 state_version=8:
- ui.phase 仍为 arrived_pending_start
- is_airborne=true,drone_in_dock=outside
- execute_gate.can_execute=true,code=ok,primary_action=start_shoot
请核查为什么已经确认首点到达并标记 arrival_wait,开拍门禁仍按 going_to_spot 返回。若确实还需补齐遥测或其他开拍条件,请返回对应的准确 code/message,避免已到达页面又提示仍在前往点位。阶段、门禁和飞控变化请保持同一快照内语义一致,递增 state_version 并推送。
App 侧已修正:已到达阶段不再被关闭/缺失的开拍门禁改成“整个任务不可操作”;仍严格按原门禁禁用开始拍摄,并显示门禁原因,不自动开拍。
二、WS 仍没有正式订阅回执
16:27:53 起的多次连接均是:Opened → ready → received,随后约 12 秒 App 订阅超时。未收到 ack=subscribe,也没有正式任务快照;本次任务一直通过 HTTP 兜底更新。
- App 发送的是 310 JSON 文本帧,任务 id=36。
- 服务端确实回复了 data.type=310、ack=received。
- 正式 ack=subscribe 的接收数量为 0。
请核查生产 hyperf-socket 的部署版本、310 后的鉴权与分发链路。按最新合同,成功和失败都应返回 data.type=310、ack=subscribe、order_flight_task_id=36 和 subscribed=true/false;鉴权应有 3 秒硬超时并返回明确失败,不能只有 received。频道登记、Redis 快照读取应在正式订阅回执之后执行。
验收:到达首点时 UI 阶段与门禁原因一致;310 后稳定收到正式 subscribe 回执,再收到完整快照,不能再只停留在 ready/received。
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
朱工您好,补充 2026-11-05 安卓真机任务 37 的回巢状态问题。以下均为北京时间。
任务37,订单261105175039,execution_batch=2451,现场App版本9.9.1.20261105_162119(Release)。
16:45:11.731 的 state_version=31:
- task.status=20,order_flight_task.status=20,wayline_status=20,ui.phase=shooting。
- flight_control.state=executing,drone_in_dock=outside。
16:45:17.953 的 state_version=32,及16:45:24.518的v33、16:45:30.770的v34:
- task.status=25,order_flight_task.status=25,wayline_status=24。
- ui.phase=post_shoot_uploading,title=拍摄已完成。
- 顶层及UI的shoot_complete_returning=true,wayline_stage=shoot_done_returning。
- flight_control.state=unknown,drone_in_dock=inside,is_airborne=false,return_reason=null。
- evidence却显示:dji_task_status=success,probe_ok=true,ever_left_dock=true,ever_airborne=true,drone_in_dock=inside。
- 三项can_*均false,任务无return_home结果码,本次也没有手动返航。
请核查:
1. 同批次已有离巢/起飞和当前在巢证据,为什么flight_control没有返回returned?正常完成为何return_reason为null而非normal_complete?
2. 已在巢内时,UI仍保留“无人机正在返航”与shoot_done_returning,需按当前设备证据更新文案/阶段标记。
3. 本次HTTP在持续成功读取新版本,不是App停刷。WS仍未见正式subscribe回执,仍请核对生产hyperf-socket的正式回执链路。
App侧已处理:明示的unknown控制态不会再被直接当成无效对象而抹掉可信拍摄完成;展示完成和素材处理中,停止本地接收。飞控与重召仍全部禁用,不由App推断returned或normal_complete;失败、取消、手动中断、批次和身份校验保持。
附件JSON保存了v31/v32/v33/v34的任务快照及本地诊断,可对照服务端日志排查。
@@ -0,0 +1,66 @@
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=
com.zhifly.follow.ui.dronedock.RemoteDroneMediaCaptureScreensTest:
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureConfirmedOrder
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneMediaCaptureScreensTest
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=.
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureConfirmedOrder
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneMediaCaptureScreensTest
INSTRUMENTATION_STATUS: current=1
INSTRUMENTATION_STATUS_CODE: 0
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureMaterialsAndDeliveryMethodsFromSameOrder
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneMediaCaptureScreensTest
INSTRUMENTATION_STATUS: current=2
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=.
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureMaterialsAndDeliveryMethodsFromSameOrder
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneMediaCaptureScreensTest
INSTRUMENTATION_STATUS: current=2
INSTRUMENTATION_STATUS_CODE: 0
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=
com.zhifly.follow.ui.dronedock.RemoteDroneTaskExtraCaptureTest:
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureTravelling
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneTaskExtraCaptureTest
INSTRUMENTATION_STATUS: current=3
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=.
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureTravelling
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneTaskExtraCaptureTest
INSTRUMENTATION_STATUS: current=3
INSTRUMENTATION_STATUS_CODE: 0
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureFailure
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneTaskExtraCaptureTest
INSTRUMENTATION_STATUS: current=4
INSTRUMENTATION_STATUS_CODE: 1
INSTRUMENTATION_STATUS: numtests=4
INSTRUMENTATION_STATUS: stream=.
INSTRUMENTATION_STATUS: id=AndroidJUnitRunner
INSTRUMENTATION_STATUS: test=captureFailure
INSTRUMENTATION_STATUS: class=com.zhifly.follow.ui.dronedock.RemoteDroneTaskExtraCaptureTest
INSTRUMENTATION_STATUS: current=4
INSTRUMENTATION_STATUS_CODE: 0
INSTRUMENTATION_RESULT: stream=
Time: 7.86
OK (4 tests)
INSTRUMENTATION_CODE: -1
Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 404 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

@@ -0,0 +1,272 @@
{
"platform": "Android",
"capturedAt": "2026-11-05",
"repository": "/Users/hanqiu/Desktop/Android_Pro/zhiflyfollow",
"commit": "faebb982",
"build": "Debug 9.9.1.20261105_112138; zhifly.bundle.youfun=false",
"device": "独立 Android API 26 AVD CodexProfileSettings; emulator-5560/5680; 1080×1920; 420 dpi",
"source": "正式RemoteDrone* Screen,已包含当前未提交UI改动;使用隔离测试数据,无真实飞控/任务/live/RTC。",
"screenshots": [
{
"filename": "dock-confirmation-code.png",
"pageKey": "confirmation-code",
"title": "订单确认码",
"state": "等待游客确认",
"note": "等待游客确认",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身;无真实业务调用"
},
{
"filename": "dock-confirmation-completed.png",
"pageKey": "confirmation-completed",
"title": "订单交付确认·完成",
"state": "已完成整单确认",
"note": "已完成整单确认",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身 / Socket及RTC替身;无真实业务调用"
},
{
"filename": "dock-confirmation-manifest.png",
"pageKey": "delivery-review",
"title": "整单交付清单",
"state": "待确认交齐",
"note": "待确认交齐",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-delivery-cloud.png",
"pageKey": "delivery-cloud",
"title": "云端上传",
"state": "未选视频",
"note": "未选视频",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身 / Socket及RTC替身;无真实业务调用"
},
{
"filename": "dock-delivery-methods.png",
"pageKey": "delivery-method",
"title": "交付成片·交付方式",
"state": "底部弹层",
"note": "底部弹层",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身;无真实业务调用"
},
{
"filename": "dock-delivery-nearby.png",
"pageKey": "delivery-nearby",
"title": "面对面闪传",
"state": "未选视频",
"note": "未选视频",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身 / Socket及RTC替身;无真实业务调用"
},
{
"filename": "dock-material-preview.png",
"pageKey": "material-preview",
"title": "素材预览",
"state": "照片预览",
"note": "照片预览",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身;无真实业务调用"
},
{
"filename": "dock-materials.png",
"pageKey": "materials",
"title": "订单素材库",
"state": "首屏",
"note": "首屏",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身;无真实业务调用"
},
{
"filename": "dock-orders.png",
"pageKey": "orders",
"title": "我的拍摄订单",
"state": "全部",
"note": "全部",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-payment-before-selection.png",
"pageKey": "payment-unselected",
"title": "收款详情·未选套餐",
"state": "未选择套餐",
"note": "未选择套餐",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-payment.png",
"pageKey": "payment",
"title": "收款详情",
"state": "已生成模拟码,页面滚动位置由现有测试保留",
"note": "已生成模拟码,页面滚动位置由现有测试保留",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-preparation.png",
"pageKey": "preparation",
"title": "拍摄准备",
"state": "可召唤",
"note": "可召唤",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-receipts.png",
"pageKey": "receipts",
"title": "收款记录",
"state": "近7天",
"note": "近7天",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-workbench-statistics.png",
"pageKey": "workbench-stats",
"title": "机巢工作台·今日统计",
"state": "向下滚动",
"note": "向下滚动",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "dock-workbench.png",
"pageKey": "workbench",
"title": "机巢工作台",
"state": "首屏",
"note": "首屏",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-completion-dialog.png",
"pageKey": "task-completion-dialog",
"title": "拍摄完成提示",
"state": "弹窗",
"note": "弹窗",
"width": 1080,
"height": 1920,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-control-paused.png",
"pageKey": "task-paused",
"title": "拍摄任务·手动暂停",
"state": "",
"note": "",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-control-pending-pause.png",
"pageKey": "task-pending-pause",
"title": "拍摄任务·暂停待确认",
"state": "",
"note": "",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-control-returned.png",
"pageKey": "task-returned",
"title": "拍摄任务·已返回机巢",
"state": "中断任务失败",
"note": "中断任务失败",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-control-returning.png",
"pageKey": "task-returning",
"title": "拍摄任务·手动返航",
"state": "",
"note": "",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-control-starting.png",
"pageKey": "task-starting",
"title": "拍摄任务·起飞准备",
"state": "无人机正在赶来",
"note": "无人机正在赶来",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-failed.png",
"pageKey": "task-failed",
"title": "拍摄任务·失败",
"state": "中断后已返回机巢,可重新召唤",
"note": "中断后已返回机巢,可重新召唤",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身 / Socket及RTC替身;无真实业务调用"
},
{
"filename": "task-going.png",
"pageKey": "task-going",
"title": "拍摄任务·前往点位",
"state": "无人机正在赶来",
"note": "无人机正在赶来",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / Coil内存图片替身 / Socket及RTC替身;无真实业务调用"
},
{
"filename": "task-ready.png",
"pageKey": "task-ready",
"title": "拍摄任务·到点等待",
"state": "倒计时与手动开拍",
"note": "倒计时与手动开拍",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-returning-complete.png",
"pageKey": "task-complete",
"title": "拍摄任务·拍摄已完成",
"state": "正常返航",
"note": "正常返航",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
},
{
"filename": "task-shooting.png",
"pageKey": "task-shooting",
"title": "拍摄任务·拍摄中",
"state": "黑色区域为Mock接收器,无真实RTC/视频帧",
"note": "黑色区域为Mock接收器,无真实RTC/视频帧",
"width": 1080,
"height": 1731,
"source": "正式当前源码 Screen + 内存 FeatureTransport / 图片替身 / Socket及RTC替身"
}
],
"validation": "工作台/收款/任务原有17用例通过;素材原有截图类依赖loopback网络与旧文案,截图专用临时类改为Coil内存图片及当前控件选择器后,最终4个补截用例全部通过。所有业务源码保持未改动。"
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 135 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 316 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 184 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 297 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 333 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 338 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 355 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 348 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 665 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 KiB

@@ -0,0 +1,248 @@
{
"platform": "iOS",
"captureDate": "2026-11-05",
"device": "iPhone 18 Pro · iOS 27.2 Simulator",
"resolution": "1206×2622",
"sourceRepository": "/Users/hanqiu/Desktop/suixinkan",
"sourceCopy": "/private/tmp/suixinkan-ui-source-20261105",
"buildConfiguration": "SimulatorDebug",
"sourceNotes": "当前源码含用户已有未提交修改;隔离副本仅增加启动入口与依赖替身,正式页面布局代码保持原样。假数据及本地图片用于UI对照,不表示真实任务或设备。所有设备写操作抛取消,RTC播放器为No-op。",
"screenshots": [
{
"key": "home",
"title": "机巢工作台",
"filename": "workbench.png",
"launchArgument": "--dock-capture=workbench",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "0fa14de668cdcc323d65bf8a7133856bd8143584866c21fa122cf3ae058e05a4"
},
{
"key": "orders",
"title": "我的拍摄订单",
"filename": "orders.png",
"launchArgument": "--dock-capture=orders",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "17f1e5d8d1d92202cc7fc227ed935f0a00822b4d9a418950fbd3cb5942a9a4e9"
},
{
"key": "payment-empty",
"title": "套餐收款·未选套餐",
"filename": "payment-before-selection.png",
"launchArgument": "--dock-capture=payment-before-selection",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "91e70d2eaefce1967b2027e149ea423c07f1befc5a99422980330789f440e27b"
},
{
"key": "payment",
"title": "套餐收款",
"filename": "payment.png",
"launchArgument": "--dock-capture=payment",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "31b23f0f0195efd5154013932d6288c06f8617a9e4a1c6ac9be15fd364a4d4dd"
},
{
"key": "receipts",
"title": "收款记录",
"filename": "receipts.png",
"launchArgument": "--dock-capture=receipts",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "7b9b5426389dad6abf91e6c24b0cc9618e7b86ce9aab692c18149791a7f426d0"
},
{
"key": "preparation",
"title": "拍摄准备",
"filename": "preparation.png",
"launchArgument": "--dock-capture=preparation",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "ff6a5ca80a994396419b389f1f1ab7c9eb97a4f064625107f7cfe278ff5f2e19"
},
{
"key": "task-starting",
"filename": "task-starting.png",
"launchArgument": "--dock-capture=task-starting",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "a02e8fc4d27d43705440893e63e1b30ce4b902ebcf94093ea8ff2ed3f50fa4a8"
},
{
"key": "task-ready",
"filename": "task-ready.png",
"launchArgument": "--dock-capture=task-ready",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "8498671d0a762c6e8b34af1343a28787c86544a04ef10a8a48cfe3166a99182c"
},
{
"key": "task-going",
"filename": "task-going.png",
"launchArgument": "--dock-capture=task-going",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "d129b427094a78a6162441e445a4913e14364479d09cfc684d6456bc72c9a4d8"
},
{
"key": "task-shooting",
"filename": "task-shooting.png",
"launchArgument": "--dock-capture=task-shooting",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "bc16903fd3d9b5a2571d175d35b738ad2838b0ff33e9436a633a25a899726f5a"
},
{
"key": "task-paused",
"filename": "task-paused.png",
"launchArgument": "--dock-capture=task-paused",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "05fba4484ac1b577b1c68caa8ed29a040d824a258746e498e3fa3f424dd23d74"
},
{
"key": "task-returning",
"filename": "task-returning.png",
"launchArgument": "--dock-capture=task-returning",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "d333800b9cb67e9eae4762419ca18fee2b014b1c3e60cf7650fa68bd04944efc"
},
{
"key": "task-returned",
"filename": "task-returned.png",
"launchArgument": "--dock-capture=task-returned",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "26a7a5561156d33bf2bf6c9eb96834acf8c90342e45ff62945ae5ba9b37d37be"
},
{
"key": "task-failed",
"filename": "task-failed.png",
"launchArgument": "--dock-capture=task-failed",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "de1e41ea23627669bcdee70af8d92a2e6208b88a3f45b30af445dee2f644ce1a"
},
{
"key": "task-completion-dialog",
"filename": "task-completion-dialog.png",
"launchArgument": "--dock-capture=task-completion-dialog",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "c927ca4ea1a1ddfc110c2638fe5545ad7906fa63062f093b9aaf3f06df3d4594"
},
{
"key": "materials",
"title": "订单素材库",
"filename": "materials.png",
"launchArgument": "--dock-capture=materials",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "08ba9c88b342b72ab78bb60054b20259fa06255bb0856c123b90100bc82a98a5"
},
{
"key": "confirmation",
"title": "订单交付确认",
"filename": "confirmation-manifest.png",
"launchArgument": "--dock-capture=confirmation-manifest",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "09297899efd9484be09cf0d493e2bb905e9ae90bca2da01c8010060150ae29aa"
},
{
"key": "confirmation-completed",
"title": "订单交付确认·已完成",
"filename": "confirmation-confirmed.png",
"launchArgument": "--dock-capture=confirmation-confirmed",
"dimensions": "1206×2622",
"source": "当前正式 UIKit 控制器 + 仅截图用内存数据;无真实业务、飞控或图传网络",
"sha256": "de9b1192051747ae941f626d56af3a74838a8e6aa9a6afc5c330f01c4e625cd5"
},
{
"key": "delivery-method",
"filename": "delivery-methods.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=delivery-methods",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "61de3cbdbf387f41a4312b5febb1086487f59f16f3096ffd811eed2691a6df24"
},
{
"key": "delivery-cloud",
"filename": "delivery-cloud.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=delivery-cloud",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "adc745ef1bb7f505ec66306d3bb6ba05b9e60ef32b360db94aab5a3902697790"
},
{
"key": "delivery-nearby",
"filename": "delivery-nearby.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=delivery-nearby",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "b25e1f8c1fd0718ef249348e94d4ccc42ed585413ee31ccd41d8673b9af85c99"
},
{
"key": "statistics",
"filename": "workbench-statistics.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=workbench-statistics",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "7c28b3c0453228cc7be14bff30107ca99587e307066e21baee12f5cfacfad776"
},
{
"key": "material-preview",
"filename": "material-preview.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=material-preview",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "6b2a498955c49122f71a5c5fa26280885c7c13e6bb4c9c4c94e6c835b754614b"
},
{
"key": "confirmation-code",
"filename": "confirmation-code.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=confirmation-code",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "df7f1f97c5f5bf8dec7c7f8ecd5ce73b5b2aad4c73d943fa5b508e4a34f58800"
},
{
"key": "project-picker",
"filename": "payment-picker.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=payment-picker",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "74028c8d17eca884ed3998ef55e4bd59bc8b48344e635e9126e163f955b3f8a8"
},
{
"key": "amount-edit",
"filename": "amount-edit.png",
"dimensions": "1206×2622",
"launchArgument": "--dock-capture=amount-edit",
"source": "隔离内存数据;临时入口调用正式控件动作进入,正式UI布局保持原样",
"sha256": "57f5cff298d349043b0542e9c6a531c7ff40d0af4e80ddd4f6e3f7d2513e985e"
},
{
"key": "task-completed",
"filename": "task-completed.png",
"dimensions": "1206×2622",
"source": "当前正式UIKit页面,隔离内存服务,由正式界面交互进入",
"sha256": "5b768c64eeeec791c2a76b47e4a5ba94acea363e0a9adb6f63c7db3348be2f66",
"note": "模拟正常录制结束后返航,与Android完成面板样例保持一致;已关闭完成提示。"
}
],
"notes": [
"图传为No-op播放器且无图传服务,不能用黑区的不可用文案推断真实图传UI一致性。",
"付款/收货码为本地图形,不对应真实业务。",
"封面/素材为本地演示图片,页面布局来自当前正式UIKit控制器。",
"delivery-cloud/delivery-nearby通过正式交付方式sheet进入;其余主体使用同一正式导航控制器。"
],
"verification": {
"allPngsValid": true,
"screenshots": 27,
"statusBarClockPixels": "所有原图左上时钟区域均完整存在,视图预览缩放不能作为裁切判断依据。"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 KiB

@@ -0,0 +1,12 @@
{
"sourceHead": "34ee60b8b250499bf5def792f964492f4d0e69d0",
"originalWorktreeChanges": [
" M suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift",
" M suixinkanTests/DroneDockCommandViewTests.swift",
" M suixinkanTests/DroneDockTaskControlStateViewTests.swift",
"?? artifacts/"
],
"copiedSourceSha256": {
"suixinkan/UI/DroneDock/DroneDockShootingTaskViewController.swift": "77aaa2b074cda6497be74a0e9a92cccd0c1b51df4260f50ad9b6faed3a8d4644"
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 KiB

File diff suppressed because it is too large Load Diff
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

@@ -0,0 +1,213 @@
{
"schema_version": 1,
"reviewed_at": "2026-11-05",
"scope": "基于本次截图评审信息层级、文案、状态表达与操作布局;属于设计建议。系统导航、键盘和安全区保留平台习惯,业务许可仍按实际接口状态。",
"entries": [
{
"key": "home",
"baseline": "android",
"label": "以 Android 为准",
"reason": "收款入口同时呈现二维码图标和“收款码”,比单独图标更容易辨认;设备、订单、素材入口的层级清楚。",
"action": "iOS 补充收款入口文字;空闲标签可保留 iOS 的浅绿底。"
},
{
"key": "statistics",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "均为成交订单、成交金额、完成拍摄三列,数字在上、名称在下,结构已一致。",
"action": "统一指标名称、金额精度及数字格式即可。"
},
{
"key": "orders",
"baseline": "ios",
"label": "以 iOS 为准",
"reason": "橙色“进行中”和绿色“已完成”更易区分订单状态,次数、进度与底部操作也有明确分层。",
"action": "状态样式参考 iOS;剩余次数可借鉴 Android 的整段强调。"
},
{
"key": "payment-empty",
"baseline": "android",
"label": "以 Android 为准",
"reason": "未选套餐时,灰色的“设置金额”“保存二维码”仍能清楚辨认;iOS 相应禁用文字过浅。",
"action": "保留先选套餐的提示,提高禁用操作文字的可读性。"
},
{
"key": "payment",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "两端都按套餐、收款金额、付款图、到账核对说明、操作组织,主次关系基本一致。",
"action": "保留到账后核对收款记录的说明,不比较本地付款图的图案。"
},
{
"key": "project-picker",
"baseline": "insufficient",
"label": "待补 Android 截图",
"reason": "本次仅有 iOS 套餐选择截图,不能据此判断哪端更好。",
"action": "补齐同一选中状态后,比较套餐名、次数、价格和确认反馈。",
"note": "缺少截图不代表 Android 没有此界面。"
},
{
"key": "amount-edit",
"baseline": "insufficient",
"label": "待补 Android 截图",
"reason": "本次仅有 iOS 金额编辑截图,缺少 Android 打开键盘后的对应状态。",
"action": "补图后比较金额输入与确认按钮的位置,键盘保留各平台习惯。"
},
{
"key": "receipts",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "汇总与明细分组一致,现金实收、退款、净收顺序相同,净收均用蓝色突出。",
"action": "保留现有核对结构;统一字段与金额格式。"
},
{
"key": "preparation",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "游客与次数、点位、航线、设备状态、确认召唤的顺序一致,选中态同时用底色和勾形标识表达。",
"action": "保留共同流程;Android 可借鉴 iOS 连接成功时的勾形标识。",
"note": "不以设备比例造成的留白或 Debug 模拟入口判断优劣。"
},
{
"key": "task-starting",
"baseline": "android",
"label": "以 Android 为准",
"reason": "阶段区更精简,突出“无人机正在赶来”;iOS 的中央刷新与导航栏刷新重复。",
"action": "采用 Android 的阶段区布局,刷新保留导航入口,设备读数集中在指标区。",
"note": "设备摘要和图传中的模拟文案不作为业务阶段正确性的证据。"
},
{
"key": "task-going",
"baseline": "android",
"label": "以 Android 为准",
"reason": "赶来阶段的标题、现场提醒和安全控制更集中,阶段区没有重复的刷新主按钮。",
"action": "参考 Android 精简中央面板;安全按钮始终按当前设备与接口许可展示。"
},
{
"key": "task-ready",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "两端都明确展示到达、站位确认、整行开拍按钮与独立安全控制,关键层级已一致。",
"action": "统一确认提醒和倒计时格式;计时本身不禁用已获许可的手动开拍。",
"note": "29 秒与 30 秒属于截图时机差异。"
},
{
"key": "task-shooting",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "浅蓝视频图标、两行现场提醒和禁用的整行“拍摄中”基本一致,业务状态与安全操作分区清楚。",
"action": "保留现有面板,统一图标线宽、文字间距与产品文案。",
"note": "模拟图传配置不同,本组不评价图传黑区的状态文案。"
},
{
"key": "task-paused",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "均以橙色暂停说明悬停状态,蓝色“继续任务”为主操作,返航保留独立入口。",
"action": "保持状态说明、继续任务、安全控制的现有层级。"
},
{
"key": "task-returning",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "两端均说明拍摄中断,用禁用按钮展示中断状态,并避免重复返航。",
"action": "保留中断原因与返航状态分别说明的方式。"
},
{
"key": "task-returned",
"baseline": "ios",
"label": "以 iOS 为准",
"reason": "回巢图标与“当前未执行任务”的禁用说明更贴合已回巢状态;Android 此处仍显示“悬停待命”。",
"action": "参考 iOS 的图标与禁用说明,保留明确的“重新召唤无人机”入口。"
},
{
"key": "task-completed",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "均以浅绿完成图标、拍摄结束说明和整行“查看素材”构成完成面板,主体表达一致。",
"action": "维持单一素材主入口;返航说明和安全按钮继续取决于设备当前状态。"
},
{
"key": "task-completion-dialog",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "两端均引导查看上传进度和素材,“稍后再去”为次操作,“去查看”为蓝色主操作。",
"action": "保留现有文案、按钮顺序与主次关系。"
},
{
"key": "task-failed",
"baseline": "insufficient",
"label": "待同状态截图再定",
"reason": "iOS 为执行失败且尚未确认回巢,Android 为手动中断后已回巢;按钮与颜色对应不同状态,无法直接判优。",
"action": "执行失败可参考 iOS 的红色原因区;手动中断保留橙色提示,补齐同状态后再统一。"
},
{
"key": "task-pending-pause",
"baseline": "insufficient",
"label": "待补 iOS 截图",
"reason": "本次只有 Android 暂停指令等待截图,缺少 iOS 同状态证据。",
"action": "可参考仅让暂停按钮等待、中央保留拍摄阶段且返航入口独立的表达。",
"note": "不能据此认定 iOS 未实现该状态。"
},
{
"key": "materials",
"baseline": "android",
"label": "以 Android 为准",
"reason": "视频角标明确区分文件类型,上传状态与可下载提示清楚;禁用下载按钮的文字也更易辨认。",
"action": "iOS 补充类型角标并提高禁用文字对比度;选择圈可保留 iOS 的蓝色描边。"
},
{
"key": "material-preview",
"baseline": "keep",
"label": "两端一致,保留各端",
"reason": "均以黑底、完整图片和文件名为核心,内容优先,预览结构已一致。",
"action": "保留完整等比展示与平台导航,不为统一黑边高度裁切图片。",
"note": "图片大小和黑边高度会受屏幕比例影响。"
},
{
"key": "delivery-method",
"baseline": "android",
"label": "以 Android 为准",
"reason": "标题、游客身份和交付方式的层级更清楚,关闭入口位于标题区,底部说明紧接选项。",
"action": "参考 Android 的信息组织,iOS 继续使用原生 sheet 与平台导航。",
"note": "两图来源页不同,不比较弹层背后的页面。"
},
{
"key": "delivery-cloud",
"baseline": "ios",
"label": "以 iOS 为准",
"reason": "两端任务关联卡基本一致;iOS 在主按钮前补充先选视频、再上传的说明,空态下的下一步更明确。",
"action": "以 iOS 的操作说明为准,保留游客与已关联任务卡;导航遵循各平台习惯。"
},
{
"key": "delivery-nearby",
"baseline": "ios",
"label": "以 iOS 为准",
"reason": "“尚未选择视频”的封面占位和状态更明确,且直接说明游客扫码后在浏览器接收,发送端与接收端角色更清楚。",
"action": "参考 iOS 的发送卡片和游客接收说明,补充 Android“选择后点击下方生成二维码”的步骤提示。"
},
{
"key": "confirmation",
"baseline": "ios",
"label": "以 iOS 为准",
"reason": "清单下明确解释“单次上传完成,不代表整单已交齐”,有助于工作人员在出确认码前核对整单。",
"action": "保留整单核对说明;“还未交齐,继续交付”可借鉴 Android 的蓝色入口,提高可发现性。",
"note": "视频封面来自不同模拟夹具,不据此判定预览能力。"
},
{
"key": "confirmation-code",
"baseline": "android",
"label": "以 Android 为准",
"reason": "主标题直接说明“原下单游客使用微信扫一扫”,比泛称游客扫码更能明确现场操作人和扫码入口。",
"action": "主标题参考 Android;保留 iOS“扫描不等于收货”说明及展开成片清单的入口。",
"note": "不比较模拟二维码图案或扫描成功率。"
},
{
"key": "confirmation-completed",
"baseline": "android",
"label": "以 Android 为准",
"reason": "浅绿成功条将已确认状态与后续成片清单衔接得更紧凑,便于工作人员快速复核交付内容。",
"action": "成功反馈参考 Android;有真实确认时间时可补充 iOS 的时间字段。"
}
]
}
Binary file not shown.
@@ -0,0 +1,198 @@
#!/usr/bin/env python3
"""Build an offline review gallery from untouched, locally captured app screenshots."""
from __future__ import annotations
import argparse
import html
import json
import pathlib
import hashlib
import struct
import subprocess
import zipfile
from collections import Counter
TITLES = {
"home": "机巢工作台", "statistics": "工作台 · 统计区域", "orders": "我的拍摄订单",
"payment-empty": "套餐收款 · 未选择套餐", "payment": "套餐收款", "receipts": "收款记录",
"preparation": "拍摄准备", "task-ready": "拍摄任务 · 到达待开拍", "task-shooting": "拍摄任务 · 拍摄中",
"task-completion-dialog": "拍摄任务 · 完成提示", "task-completed": "拍摄任务 · 拍摄已完成",
"task-paused": "拍摄任务 · 手动暂停", "task-returning": "拍摄任务 · 返航中",
"task-returned": "拍摄任务 · 已回巢", "task-pending-pause": "拍摄任务 · 暂停指令等待",
"task-starting": "拍摄任务 · 起飞准备", "task-failed": "拍摄任务 · 失败",
"task-going": "拍摄任务 · 前往点位",
"materials": "订单素材库", "material-preview": "素材预览", "delivery-method": "交付方式选择",
"delivery-cloud": "云端交付", "delivery-nearby": "面对面闪传", "confirmation": "订单交付确认",
"confirmation-code": "确认收货二维码", "confirmation-completed": "订单交付确认 · 已完成",
"project-picker": "套餐选择", "amount-edit": "设置金额", "live-fullscreen": "图传全屏",
}
ALIASES = {
"dock-workbench": "home", "dock-workbench-statistics": "statistics", "dock-orders": "orders",
"dock-payment-before-selection": "payment-empty", "dock-payment": "payment", "dock-receipts": "receipts",
"dock-preparation": "preparation", "dock-materials": "materials", "dock-material-preview": "material-preview",
"dock-delivery-methods": "delivery-method", "dock-delivery-cloud": "delivery-cloud",
"dock-delivery-nearby": "delivery-nearby", "dock-confirmation-manifest": "confirmation",
"dock-confirmation-code": "confirmation-code", "task-returning-complete": "task-completed",
"task-control-paused": "task-paused", "task-control-returning": "task-returning",
"task-control-returned": "task-returned", "task-control-pending-pause": "task-pending-pause",
"task-control-starting": "task-starting",
}
ORDER = ["home", "statistics", "orders", "payment-empty", "payment", "project-picker", "amount-edit", "receipts", "preparation",
"task-starting", "task-going", "task-ready", "task-shooting", "task-paused", "task-returning", "task-returned", "task-completed",
"task-completion-dialog", "task-failed", "task-pending-pause", "materials", "material-preview", "delivery-method",
"delivery-cloud", "delivery-nearby", "confirmation", "confirmation-code", "confirmation-completed", "live-fullscreen"]
def read_manifest(root: pathlib.Path, platform: str):
directory = root / platform
path = directory / "manifest.json"
metadata = json.loads(path.read_text()) if path.exists() else {}
if isinstance(metadata, list):
records = metadata
metadata = {}
else:
records = metadata.get("screenshots", metadata.get("screens", metadata.get("pages", [])))
files = {p.name: p for p in directory.glob("*.png")}
result = []
seen = set()
for record in records:
if isinstance(record, str):
record = {"filename": record}
filename = record.get("filename", record.get("file", record.get("path", "")))
filename = pathlib.Path(filename).name
if filename not in files:
continue
stem = pathlib.Path(filename).stem
key = record.get("pageKey", record.get("key", record.get("page", stem)))
key = ALIASES.get(key, ALIASES.get(stem, key))
item = {**record, "filename": filename, "key": key, "platform": platform,
"path": str(files[filename].relative_to(root)), "title": record.get("title", TITLES.get(key, stem))}
result.append(item)
seen.add(filename)
for filename, path in files.items():
if filename in seen:
continue
key = ALIASES.get(path.stem, path.stem)
result.append({"filename": filename, "key": key, "platform": platform,
"path": str(path.relative_to(root)), "title": TITLES.get(key, path.stem)})
used_keys = {}
for item in result:
path = root / item["path"]
raw = path.read_bytes()
width, height = struct.unpack(">II", raw[16:24])
item["dimensions"] = f"{width} × {height}"
item["sha256"] = hashlib.sha256(raw).hexdigest()
if item["key"] == "task-failed" and platform == "ios":
item["note"] = "执行失败,等待设备确认回巢;右侧为中断后已回巢,模拟状态不同。"
if item["key"] == "delivery-method":
item["note"] = "由工作台打开交付方式弹层。" if platform == "ios" else "由订单素材库打开交付方式弹层。"
count = used_keys.get(item["key"], 0) + 1
used_keys[item["key"]] = count
if count > 1:
item["original_key"] = item["key"]
item["key"] = f'{item["key"]}-extra-{count}'
return metadata, result
def pair_records(ios, android):
ios_map = {r["key"]: r for r in ios}
android_map = {r["key"]: r for r in android}
keys = list(dict.fromkeys(ORDER + list(ios_map) + list(android_map)))
return [{"key": k, "title": TITLES.get(k, (ios_map.get(k) or android_map.get(k))["title"]),
"ios": ios_map.get(k), "android": android_map.get(k)}
for k in keys if k in ios_map or k in android_map]
def build_html(root: pathlib.Path, pairs, platforms):
escaped = lambda value: html.escape(str(value), quote=True)
navigation = "".join(f'<a href="#{escaped(p["key"])}">{i:02d} {escaped(p["title"])}</a>' for i, p in enumerate(pairs, 1))
sections = []
for i, pair in enumerate(pairs, 1):
columns = []
for platform, label in [("ios", "iOS"), ("android", "Android")]:
screen = pair[platform]
if screen:
path = escaped(screen["path"])
title = escaped(pair["title"])
dimensions = screen.get("dimensions", "")
note = screen.get("note", screen.get("notes", ""))
if isinstance(note, list):
note = ";".join(note)
columns.append(f'<figure><figcaption><strong>{label}</strong><span>{escaped(dimensions)}</span></figcaption>'
f'<a href="{path}" target="_blank" aria-label="打开 {label} {title} 原图"><img src="{path}" loading="lazy" alt="{label} {title}"></a>'
f'<p class="caption">{escaped(note)}</p></figure>')
else:
columns.append(f'<figure><figcaption><strong>{label}</strong></figcaption><div class="missing">本次未提供该状态截图</div></figure>')
recommendation = pair["recommendation"]
note = recommendation.get("note", "")
note_html = f'<p class="rec-note">{escaped(note)}</p>' if note else ''
columns.append(
f'<aside class="recommendation" aria-labelledby="rec-{escaped(pair["key"])}">'
f'<h3 id="rec-{escaped(pair["key"])}">推荐以哪端为准</h3>'
f'<p class="rec-choice rec-{escaped(recommendation["baseline"])}">{escaped(recommendation["label"])}</p>'
f'<p class="rec-reason">{escaped(recommendation["reason"])}</p>'
f'<p class="rec-action"><strong>建议同步</strong>{escaped(recommendation["action"])}</p>'
f'{note_html}</aside>'
)
unmatched = '' if pair['ios'] and pair['android'] else '<span class="tag">单端补充</span>'
comparison_path = f'comparison/{i:02d}-{pair["key"]}.png'
sections.append(f'<section id="{escaped(pair["key"])}"><h2><span>{i:02d}</span> {escaped(pair["title"])} {unmatched} '
f'<a class="combined" href="{escaped(comparison_path)}" target="_blank">三列图</a></h2><div class="pair">{"".join(columns)}</div></section>')
source = escaped(json.dumps(platforms, ensure_ascii=False, indent=2))
output = '''<!doctype html>
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>机巢控制台 · iOS / Android UI 对比</title>
<style>
:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#20242c;background:#f4f6f8;font-size:15px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}a{color:#1556b3}header{max-width:1640px;margin:auto;padding:34px 28px 24px}h1{font-size:26px;line-height:1.3;margin:0 0 12px}header p{margin:6px 0;color:#53606f}header .links{display:flex;gap:20px;flex-wrap:wrap;margin-top:14px}
.layout{max-width:1640px;margin:auto;display:grid;grid-template-columns:208px minmax(0,1fr);gap:24px;padding:0 28px 40px}nav{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow:auto;padding-bottom:14px}nav a{display:block;text-decoration:none;color:#3c4656;padding:7px 10px;border-radius:5px;font-size:13px}nav a:hover,nav a:focus{background:#e1e8f1}main{min-width:0}section{scroll-margin-top:18px;margin:0 0 32px;padding:18px 20px 22px;background:white;border-radius:10px;box-shadow:0 2px 10px #1c2a3e08}h2{margin:0 0 16px;font-size:18px;font-weight:600}h2>span:first-child{font-variant-numeric:tabular-nums;color:#8390a1;margin-right:5px}.combined{font-size:12px;font-weight:400;float:right;margin-top:4px}.tag{font-size:11px;color:#6a7482;background:#edf0f4;padding:3px 7px;border-radius:4px;vertical-align:2px;white-space:nowrap}.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(220px,.74fr);gap:18px;align-items:start}figure{margin:0;min-width:0}figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:9px}figcaption span{color:#7b8795;font-size:11px}img{display:block;width:100%;height:auto;background:#f4f6f8;border:1px solid #e5e9ef}a:focus img{outline:3px solid #2b74ca;outline-offset:3px}.caption{font-size:12px;color:#738093;margin:8px 0 0}.missing{background:#f4f6f8;padding:55px 16px;text-align:center;color:#7c8795;font-size:13px}details{margin:20px 0}summary{cursor:pointer;color:#4c5b70}pre{font-size:12px;background:white;padding:16px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.recommendation{min-width:0;border-left:1px solid #dce3ec;padding-left:18px;overflow-wrap:anywhere}.recommendation h3{font-size:15px;font-weight:600;margin:0 0 12px;color:#475467}.rec-choice{display:inline-block;margin:0 0 12px;padding:5px 10px;background:#edf3fc;color:#174b91;border-radius:5px;font-size:15px;font-weight:600}.rec-keep{background:#f0f3f6;color:#475467}.rec-insufficient{background:#fff5dd;color:#805d13}.rec-reason{margin:0 0 14px;color:#273448}.rec-action{margin:0 0 14px;color:#465569}.rec-action strong{display:block;font-size:13px;margin-bottom:4px;color:#28384e}.rec-note{margin:0;color:#687587;font-size:12px;line-height:1.65}.review-scope{border-left:3px solid #b5c9e5;padding-left:12px}
@media(max-width:1240px){.layout{display:block}nav{position:static;max-height:160px;columns:3;margin-bottom:24px;background:#eaf0f6;padding:10px}}@media(max-width:900px){.pair{grid-template-columns:repeat(2,minmax(0,1fr))}.recommendation{grid-column:1/-1;border-left:0;border-top:1px solid #dce3ec;padding:16px 0 0}.recommendation h3{margin-bottom:8px}.rec-action strong{display:inline;margin-right:8px}}
@media(max-width:760px){header{padding:24px 16px}.layout{display:block;padding:0 12px 24px}nav{position:static;max-height:200px;margin-bottom:20px;background:#eaf0f6;padding:10px;columns:2}section{padding:14px 10px}.pair{gap:9px}h2{font-size:16px}figcaption{font-size:13px;display:block}figcaption span{display:block}}@media print{nav,.links{display:none}.layout{display:block}section{box-shadow:none;break-inside:avoid}header{padding:0}body{background:white}.pair{gap:20px}}
</style></head><body><header><h1>机巢控制台 · iOS / Android</h1><p>2026-11-05 · 当前源码正式页面 · 隔离模拟数据</p><p>左列 iOS,中列 Android,右列为推荐基准与理由;窄屏时建议显示在截图下方。点击截图可查看完整原图,两端按等宽展示。</p><p>iOS 使用截图专用副本,仅加入依赖替身和启动入口,正式页面布局原样保留。Android 使用当前正式 Screen 与隔离测试替身。</p><p>任务、设备、游客、图传均为本地模拟来源;两端模拟图传配置及业务数据可能不同,画面状态差异不能代表真实设备行为。二维码为本地测试图形,不对应真实付款或收货。</p><p class="review-scope">推荐仅针对本次可见的布局、文案与操作层级。两端一致时保留各端;缺图或模拟状态不同的组注明待核对。系统导航、键盘与安全区遵循平台习惯。</p><div class="links"><a href="overview.png">查看总览图</a><a href="screenshots.zip" download>下载全部截图与图集</a><a href="manifest.json">查看截图清单</a></div></header><div class="layout"><nav aria-label="页面导航">NAVIGATION</nav><main>SECTIONS<details><summary>运行环境和截图来源</summary><pre>SOURCE</pre></details></main></div></body></html>'''
(root / "index.html").write_text(output.replace("NAVIGATION", navigation).replace("SECTIONS", "".join(sections)).replace("SOURCE", source))
def main():
parser = argparse.ArgumentParser()
parser.add_argument("root", type=pathlib.Path)
parser.add_argument("--render-swift", default=str(pathlib.Path(__file__).with_name("render_gallery.swift")))
parser.add_argument("--no-render", action="store_true")
args = parser.parse_args()
root = args.root.resolve()
ios_metadata, ios = read_manifest(root, "ios")
android_metadata, android = read_manifest(root, "android")
if not ios or not android:
raise SystemExit(f"Both screenshot sets required: iOS {len(ios)}, Android {len(android)}")
pairs = pair_records(ios, android)
review = json.loads((root / "recommendations.json").read_text())
recommendations = {entry["key"]: entry for entry in review["entries"]}
expected_keys = {pair["key"] for pair in pairs}
if len(recommendations) != len(review["entries"]) or set(recommendations) != expected_keys:
raise SystemExit("Recommendations must cover every comparison group exactly once")
for pair in pairs:
pair["recommendation"] = recommendations[pair["key"]]
metadata = {"ios": ios_metadata, "android": android_metadata}
manifest = {"title": "机巢控制台 iOS / Android UI 对比", "capture_date": "2026-11-05", "source": "当前正式页面 + 隔离模拟数据",
"platforms": metadata, "pair_count": len(pairs), "paired_count": sum(bool(p["ios"] and p["android"]) for p in pairs),
"ui_review": {"reviewed_at": review["reviewed_at"], "scope": review["scope"],
"baseline_counts": dict(Counter(r["baseline"] for r in recommendations.values()))},
"pairs": pairs}
(root / "manifest.json").write_text(json.dumps(manifest, ensure_ascii=False, indent=2))
build_html(root, pairs, metadata)
if not args.no_render:
subprocess.run(["swift", "-module-cache-path", "/private/tmp/drone-gallery-swift-cache", args.render_swift, str(root)], check=True)
archive = root / "screenshots.zip"
with zipfile.ZipFile(archive, "w", zipfile.ZIP_DEFLATED) as target:
for path in sorted(root.rglob("*")):
if path.is_file() and path != archive and path.suffix not in {".log", ".apk", ".pyc"}:
target.write(path, path.relative_to(root))
print(json.dumps({"pairs": len(pairs), "paired": manifest["paired_count"], "ios": len(ios), "android": len(android),
"html": str(root / "index.html"), "archive_bytes": archive.stat().st_size}, ensure_ascii=False))
if __name__ == "__main__":
main()
@@ -0,0 +1,217 @@
import AppKit
import Foundation
/// Renders review derivatives with two untouched screenshots and an independently sized recommendation column.
let root = URL(fileURLWithPath: CommandLine.arguments[1], isDirectory: true)
let manifestData = try Data(contentsOf: root.appendingPathComponent("manifest.json"))
let manifest = try JSONSerialization.jsonObject(with: manifestData) as! [String: Any]
let pairs = manifest["pairs"] as! [[String: Any]]
let output = root.appendingPathComponent("comparison", isDirectory: true)
try FileManager.default.createDirectory(at: output, withIntermediateDirectories: true)
/// Returns review fields as display text while accepting optional or array-valued notes.
func textValue(_ value: Any?) -> String {
if let string = value as? String { return string.trimmingCharacters(in: .whitespacesAndNewlines) }
if let strings = value as? [String] { return strings.joined(separator: "\n") }
return ""
}
/// Supplies a readable conclusion if a review object only specifies its baseline.
func recommendationLabel(_ recommendation: [String: Any]) -> String {
let label = textValue(recommendation["label"])
if !label.isEmpty { return label }
let baseline = textValue(recommendation["baseline"])
switch baseline.lowercased() {
case "ios": return "以 iOS 为准"
case "android": return "以 Android 为准"
case "both", "mixed", "mix", "hybrid": return "结合两端"
case "keep", "native", "platform": return "保留平台习惯"
case "", "pending": return "待补充建议"
default: return baseline
}
}
/// Measures wrapped Chinese or Latin paragraphs with the same attributes used during drawing.
func styledText(_ text: String, size: CGFloat, color: NSColor = .black, weight: NSFont.Weight = .regular) -> NSAttributedString {
let paragraph = NSMutableParagraphStyle()
paragraph.lineBreakMode = .byWordWrapping
paragraph.lineSpacing = 4
return NSAttributedString(string: text, attributes: [
.font: NSFont.systemFont(ofSize: size, weight: weight),
.foregroundColor: color,
.paragraphStyle: paragraph
])
}
/// Includes a small drawing allowance so the last line never clips at a fractional glyph boundary.
func textHeight(_ text: NSAttributedString, width: CGFloat) -> CGFloat {
let bounds = text.boundingRect(with: NSSize(width: width, height: CGFloat.greatestFiniteMagnitude),
options: [.usesLineFragmentOrigin, .usesFontLeading])
return ceil(bounds.height) + 6
}
/// Draws every wrapped line and returns the consumed vertical space.
@discardableResult
func wrappedLabel(_ text: NSAttributedString, x: CGFloat, y: CGFloat, width: CGFloat) -> CGFloat {
let height = textHeight(text, width: width)
text.draw(with: NSRect(x: x, y: y, width: width, height: height),
options: [.usesLineFragmentOrigin, .usesFontLeading], context: nil)
return height
}
/// Draws short headings with the same minimum type size as all other review text.
func label(_ text: String, x: CGFloat, y: CGFloat, width: CGFloat, size: CGFloat,
color: NSColor = .black, weight: NSFont.Weight = .regular) {
wrappedLabel(styledText(text, size: size, color: color, weight: weight), x: x, y: y, width: width)
}
/// Reads source screenshots without writing or transforming their files.
func image(_ record: [String: Any]?) -> NSImage? {
guard let path = record?["path"] as? String else { return nil }
return NSImage(contentsOf: root.appendingPathComponent(path))
}
/// Creates a correctly oriented PNG canvas used exclusively for derived comparison images.
func render(width: Int, height: Int, file: URL, draw: () -> Void) throws {
let rep = NSBitmapImageRep(bitmapDataPlanes: nil, pixelsWide: width, pixelsHigh: height,
bitsPerSample: 8, samplesPerPixel: 4, hasAlpha: true, isPlanar: false,
colorSpaceName: .deviceRGB, bytesPerRow: 0, bitsPerPixel: 0)!
let context = NSGraphicsContext(bitmapImageRep: rep)!
NSGraphicsContext.saveGraphicsState()
context.cgContext.translateBy(x: 0, y: CGFloat(height))
context.cgContext.scaleBy(x: 1, y: -1)
let flipped = NSGraphicsContext(cgContext: context.cgContext, flipped: true)
NSGraphicsContext.current = flipped
flipped.imageInterpolation = .high
NSColor.white.setFill()
NSRect(x: 0, y: 0, width: width, height: height).fill()
draw()
NSGraphicsContext.restoreGraphicsState()
try rep.representation(using: .png, properties: [:])!.write(to: file)
}
/// Scales each complete source image to its column width without cropping.
func drawImage(_ img: NSImage?, x: CGFloat, y: CGFloat, width: CGFloat, placeholderHeight: CGFloat) {
guard let img else {
NSColor(white: 0.96, alpha: 1).setFill()
NSRect(x: x, y: y, width: width, height: placeholderHeight).fill()
label("本次未截图", x: x + 20, y: y + 50, width: width - 40, size: 20, color: .secondaryLabelColor)
return
}
let height = img.size.height * width / img.size.width
img.draw(in: NSRect(x: x, y: y, width: width, height: height), from: .zero,
operation: .sourceOver, fraction: 1, respectFlipped: true, hints: nil)
}
/// Describes one measured block in the right-hand review column.
struct ReviewBlock {
let content: NSAttributedString
let trailingSpace: CGFloat
}
/// Separates the conclusion, rationale, action, and limitations without truncating any field.
func reviewBlocks(_ recommendation: [String: Any]) -> [ReviewBlock] {
var blocks = [ReviewBlock(content: styledText(recommendationLabel(recommendation), size: 25, weight: .semibold), trailingSpace: 28)]
for (key, heading) in [("reason", "理由"), ("action", "建议调整"), ("note", "对照说明")] {
let value = textValue(recommendation[key])
guard !value.isEmpty else { continue }
blocks.append(ReviewBlock(content: styledText(heading, size: 18, color: .secondaryLabelColor, weight: .medium), trailingSpace: 6))
blocks.append(ReviewBlock(content: styledText(value, size: key == "note" ? 18 : 20), trailingSpace: 26))
}
return blocks
}
let screenshotWidth: CGFloat = 540
let reviewX: CGFloat = 1180
let reviewWidth: CGFloat = 320
let canvasWidth = 1534
for (index, pair) in pairs.enumerated() {
let a = image(pair["ios"] as? [String: Any])
let b = image(pair["android"] as? [String: Any])
let recommendation = pair["recommendation"] as? [String: Any] ?? [:]
let blocks = reviewBlocks(recommendation)
let reviewHeight = blocks.reduce(CGFloat(0)) { $0 + textHeight($1.content, width: reviewWidth) + $1.trailingSpace }
let imageHeight = max(a.map { $0.size.height * screenshotWidth / $0.size.width } ?? 240,
b.map { $0.size.height * screenshotWidth / $0.size.width } ?? 240)
let contentHeight = max(imageHeight, reviewHeight)
let filename = String(format: "%02d-", index + 1) + (pair["key"] as! String) + ".png"
try render(width: canvasWidth, height: Int(ceil(contentHeight + 190)), file: output.appendingPathComponent(filename)) {
label(pair["title"] as! String, x: 34, y: 20, width: CGFloat(canvasWidth - 68), size: 30, weight: .semibold)
label("iOS", x: 34, y: 76, width: screenshotWidth, size: 25, weight: .medium)
label("Android", x: 606, y: 76, width: screenshotWidth, size: 25, weight: .medium)
label("推荐以哪端为准", x: reviewX, y: 76, width: reviewWidth, size: 24, weight: .medium)
drawImage(a, x: 34, y: 120, width: screenshotWidth, placeholderHeight: 240)
drawImage(b, x: 606, y: 120, width: screenshotWidth, placeholderHeight: 240)
NSColor(white: 0.88, alpha: 1).setFill()
NSRect(x: 1162, y: 120, width: 1, height: contentHeight).fill()
var y: CGFloat = 120
for block in blocks {
y += wrappedLabel(block.content, x: reviewX, y: y, width: reviewWidth) + block.trailingSpace
}
label("本地模拟 · 2026-11-05 · 完整原图请查看 ios / android 目录", x: 34, y: contentHeight + 144,
width: CGFloat(canvasWidth - 68), size: 18, color: .secondaryLabelColor)
}
}
/// Stores measured overview geometry so long recommendation labels expand the corresponding row.
struct OverviewCell {
let pair: [String: Any]
let iosImage: NSImage?
let androidImage: NSImage?
let title: NSAttributedString
let recommendation: NSAttributedString
let titleHeight: CGFloat
let recommendationHeight: CGFloat
let imageOffset: CGFloat
let height: CGFloat
}
let overviewColumns = 3
let cellWidth: CGFloat = 476
let cellContentWidth: CGFloat = 450
let overviewImageWidth: CGFloat = 216
let cells: [OverviewCell] = pairs.enumerated().map { index, pair in
let a = image(pair["ios"] as? [String: Any])
let b = image(pair["android"] as? [String: Any])
let title = styledText(String(format: "%02d ", index + 1) + (pair["title"] as! String), size: 20, weight: .medium)
let recommendation = styledText("建议:" + recommendationLabel(pair["recommendation"] as? [String: Any] ?? [:]),
size: 18, color: .systemBlue, weight: .medium)
let titleHeight = textHeight(title, width: cellContentWidth)
let recommendationHeight = textHeight(recommendation, width: cellContentWidth)
let imageOffset = titleHeight + 6 + recommendationHeight + 8 + 32
let imageHeight = max(a.map { $0.size.height * overviewImageWidth / $0.size.width } ?? 180,
b.map { $0.size.height * overviewImageWidth / $0.size.width } ?? 180)
return OverviewCell(pair: pair, iosImage: a, androidImage: b, title: title, recommendation: recommendation,
titleHeight: titleHeight, recommendationHeight: recommendationHeight,
imageOffset: imageOffset, height: imageOffset + imageHeight + 64)
}
let rows = Int(ceil(Double(cells.count) / Double(overviewColumns)))
let rowHeights: [CGFloat] = (0..<rows).map { row in
cells[(row * overviewColumns)..<min((row + 1) * overviewColumns, cells.count)].map(\.height).max() ?? 0
}
let overviewHeight = Int(ceil(rowHeights.reduce(0, +) + 130))
try render(width: Int(CGFloat(overviewColumns) * cellWidth + 40), height: overviewHeight,
file: root.appendingPathComponent("overview.png")) {
label("机巢控制台 · iOS / Android UI 对比与建议", x: 28, y: 18, width: 1380, size: 32, weight: .semibold)
label("每组左 iOS、右 Android · 当前正式页面 + 隔离模拟数据 · 2026-11-05", x: 28, y: 67,
width: 1380, size: 20, color: .secondaryLabelColor)
var rowY: CGFloat = 124
for row in 0..<rows {
for column in 0..<overviewColumns {
let index = row * overviewColumns + column
guard index < cells.count else { continue }
let cell = cells[index]
let x = 24 + CGFloat(column) * cellWidth
wrappedLabel(cell.title, x: x, y: rowY, width: cellContentWidth)
wrappedLabel(cell.recommendation, x: x, y: rowY + cell.titleHeight + 6, width: cellContentWidth)
let platformY = rowY + cell.titleHeight + 6 + cell.recommendationHeight + 8
label("iOS", x: x, y: platformY, width: overviewImageWidth, size: 18, color: .secondaryLabelColor)
label("Android", x: x + 230, y: platformY, width: overviewImageWidth, size: 18, color: .secondaryLabelColor)
drawImage(cell.iosImage, x: x, y: rowY + cell.imageOffset, width: overviewImageWidth, placeholderHeight: 180)
drawImage(cell.androidImage, x: x + 230, y: rowY + cell.imageOffset, width: overviewImageWidth, placeholderHeight: 180)
}
rowY += rowHeights[row]
}
}
print("Rendered \(pairs.count) three-column comparison PNGs and recommendation overview.png")
@@ -0,0 +1,9 @@
# 拍摄任务页 v2 接口交付说明(文档1.1)
本包替换先前1.0版。业务规则和WS协议不变,仅统一HTTP为固定路径:GET参数放Query,POST参数放JSON,不在路径拼接业务ID。
请先阅读《拍摄任务页-v2接口协议-后端实施稿.md》,配套16份JSON。所有数据虚构、凭证无效。本包不含App代码和旧讨论稿。
请朱工登记未占用的新版WS订阅/退订整数编号;模板字符串占位必须替换为整数。旧接口和310/311保持原合同。
当前仅需可行性分析时,不开始开发;请按用户另附的评估要求返回结果文档。
@@ -0,0 +1,60 @@
{
"code": 100000,
"msg": "success",
"data": {
"task_id": 501,
"execution_id": "execution-001",
"state": {
"version": 18,
"stage": "ready",
"paused": false,
"context": "context-ready-001",
"live_version": 2,
"reason": null,
"operations": []
},
"telemetry": {
"version": 7,
"items": {
"battery": {
"value": "95%",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
},
"env_temp": {
"value": "19.6℃",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
},
"wind_speed": {
"value": "2m/s",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
},
"rainfall": {
"value": "无雨",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
},
"signal": {
"value": "良好",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
},
"satellite": {
"value": "32颗",
"observed_at": "2026-11-06T10:00:00.000+08:00",
"stale": false
}
}
},
"info": {
"order_number": "261106000001",
"spot_name": "示例拍摄点",
"route_name": "示例航线",
"tourist_label": "游客 158****8888",
"package_name": "航拍套餐 · 含 2 次拍摄",
"cover_url": null
}
}
}

Some files were not shown because too many files have changed in this diff Show More