Files
suixinkan_uikit/artifacts/android-arrival-gate-fix-2026-11-05/给朱工的后端核查说明.txt
T

31 lines
2.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
朱工您好,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。