补充 9.9.1 机巢交付资料并切换运行配置
This commit is contained in:
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "success",
|
||||
"data": {
|
||||
"order_flight_task_id": 501,
|
||||
"execution_batch": 9001,
|
||||
"state_version": 12,
|
||||
"snapshot_kind": "full",
|
||||
"state_updated_at": "2026-11-06 10:00:00",
|
||||
"metrics_updated_at": "2026-11-06 09:59:55",
|
||||
"metrics_stale": false,
|
||||
"shoot_complete_returning": false,
|
||||
"order_type": 25,
|
||||
"order_type_label": "多点位航拍",
|
||||
"plane_id": 58,
|
||||
"airport_sn": "DEMO_DOCK_SN",
|
||||
"scenic": {
|
||||
"id": 271,
|
||||
"name": "示例景区"
|
||||
},
|
||||
"scenic_spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"air_line": {
|
||||
"id": 123,
|
||||
"name": "示例航线",
|
||||
"scenic_spot_id": 412,
|
||||
"estimated_fly_time": 274,
|
||||
"line_video_duration": 26,
|
||||
"fly_type": 1
|
||||
},
|
||||
"header": {
|
||||
"order_number": "261106000001",
|
||||
"title": "示例拍摄点 · 示例航线",
|
||||
"tourist_label": "游客 158****8888",
|
||||
"tourist_phone_mask": "158****8888",
|
||||
"package_name": "航拍套餐 · 含 2 次拍摄",
|
||||
"shot_total": 2,
|
||||
"shot_remain": 2
|
||||
},
|
||||
"task": {
|
||||
"id": 501,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"task_uuid": "11111111-1111-4111-8111-111111111111",
|
||||
"wayline_task_id": 9001,
|
||||
"wayline_status": 20,
|
||||
"wayline_status_label": "拍摄中"
|
||||
},
|
||||
"order_flight_task": {
|
||||
"id": 501,
|
||||
"order_id": 10001,
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"store_id": 12,
|
||||
"store_user_id": 88,
|
||||
"scenic_spot_id": 412,
|
||||
"air_line_id": 123,
|
||||
"plane_id": 58,
|
||||
"airport_sn": "DEMO_DOCK_SN",
|
||||
"wayline_task_id": 9001,
|
||||
"task_uuid": "11111111-1111-4111-8111-111111111111",
|
||||
"seq": 1,
|
||||
"spot_attempt": 1,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"result_code": "",
|
||||
"result_message": "",
|
||||
"deducted": 0,
|
||||
"started_at": "2026-11-06 09:59:00",
|
||||
"finished_at": null,
|
||||
"medias": []
|
||||
},
|
||||
"current_plane": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
},
|
||||
"airport_status": {
|
||||
"sn": "DEMO_DOCK_SN",
|
||||
"status": 2,
|
||||
"task_type": 2,
|
||||
"work_status_label": "拍摄中"
|
||||
},
|
||||
"plane_status": {
|
||||
"scenic_id": 271,
|
||||
"connected": true,
|
||||
"has_idle": false,
|
||||
"has_shooting": true,
|
||||
"planes": [
|
||||
{
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
}
|
||||
],
|
||||
"recommend": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
},
|
||||
"poll_hint_ms": 5000
|
||||
},
|
||||
"poll_hint_ms": 5000,
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"source": "airport"
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"value": "2m/s",
|
||||
"raw": 2
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"value": "无信号",
|
||||
"raw": "no_signal"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"value": "32颗",
|
||||
"raw": 32
|
||||
}
|
||||
],
|
||||
"execute_gate": {
|
||||
"can_execute": true,
|
||||
"code": "ok",
|
||||
"message": "",
|
||||
"primary_action": "start_shoot",
|
||||
"primary_action_label": "开始拍摄"
|
||||
},
|
||||
"restart_gate": {
|
||||
"can_restart": false,
|
||||
"code": "running",
|
||||
"message": "任务执行中,请等待结束或返航后再试",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "执行中"
|
||||
},
|
||||
"flight_control": {
|
||||
"state": "executing",
|
||||
"is_airborne": true,
|
||||
"pause_reason": "arrival_wait",
|
||||
"resume_phase": "arrived_pending_start",
|
||||
"return_reason": null,
|
||||
"can_pause": true,
|
||||
"can_resume": false,
|
||||
"can_return_home": true,
|
||||
"dji_task_status": "paused",
|
||||
"drone_in_dock": "outside",
|
||||
"execution_batch": 9001,
|
||||
"pending_command": null,
|
||||
"evidence": {
|
||||
"drone_in_dock": "outside",
|
||||
"ever_left_dock": true,
|
||||
"ever_airborne": true,
|
||||
"probe_ok": true
|
||||
}
|
||||
},
|
||||
"ui": {
|
||||
"phase": "arrived_pending_start",
|
||||
"title": "无人机已到达 是否开始拍摄?",
|
||||
"message": "确认游客站位与取景后开始",
|
||||
"primary_action": "start_shoot",
|
||||
"primary_action_label": "开始拍摄",
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"time": "2026-11-06 10:00:00"
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
{
|
||||
"code": 100000,
|
||||
"msg": "OK",
|
||||
"data": {
|
||||
"action": "app_airport_shooting_updated",
|
||||
"params": {
|
||||
"order_flight_task_id": 501,
|
||||
"execution_batch": 9001,
|
||||
"state_version": 12,
|
||||
"snapshot_kind": "full",
|
||||
"state_updated_at": "2026-11-06 10:00:00",
|
||||
"metrics_updated_at": "2026-11-06 09:59:55",
|
||||
"metrics_stale": false,
|
||||
"shoot_complete_returning": false,
|
||||
"order_type": 25,
|
||||
"order_type_label": "多点位航拍",
|
||||
"plane_id": 58,
|
||||
"airport_sn": "DEMO_DOCK_SN",
|
||||
"scenic": {
|
||||
"id": 271,
|
||||
"name": "示例景区"
|
||||
},
|
||||
"scenic_spot": {
|
||||
"id": 412,
|
||||
"name": "示例拍摄点"
|
||||
},
|
||||
"air_line": {
|
||||
"id": 123,
|
||||
"name": "示例航线",
|
||||
"scenic_spot_id": 412,
|
||||
"estimated_fly_time": 274,
|
||||
"line_video_duration": 26,
|
||||
"fly_type": 1
|
||||
},
|
||||
"header": {
|
||||
"order_number": "261106000001",
|
||||
"title": "示例拍摄点 · 示例航线",
|
||||
"tourist_label": "游客 158****8888",
|
||||
"tourist_phone_mask": "158****8888",
|
||||
"package_name": "航拍套餐 · 含 2 次拍摄",
|
||||
"shot_total": 2,
|
||||
"shot_remain": 2
|
||||
},
|
||||
"task": {
|
||||
"id": 501,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"task_uuid": "11111111-1111-4111-8111-111111111111",
|
||||
"wayline_task_id": 9001,
|
||||
"wayline_status": 20,
|
||||
"wayline_status_label": "拍摄中"
|
||||
},
|
||||
"order_flight_task": {
|
||||
"id": 501,
|
||||
"order_id": 10001,
|
||||
"order_number": "261106000001",
|
||||
"scenic_id": 271,
|
||||
"store_id": 12,
|
||||
"store_user_id": 88,
|
||||
"scenic_spot_id": 412,
|
||||
"air_line_id": 123,
|
||||
"plane_id": 58,
|
||||
"airport_sn": "DEMO_DOCK_SN",
|
||||
"wayline_task_id": 9001,
|
||||
"task_uuid": "11111111-1111-4111-8111-111111111111",
|
||||
"seq": 1,
|
||||
"spot_attempt": 1,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"result_code": "",
|
||||
"result_message": "",
|
||||
"deducted": 0,
|
||||
"started_at": "2026-11-06 09:59:00",
|
||||
"finished_at": null,
|
||||
"medias": []
|
||||
},
|
||||
"current_plane": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
},
|
||||
"airport_status": {
|
||||
"sn": "DEMO_DOCK_SN",
|
||||
"status": 2,
|
||||
"task_type": 2,
|
||||
"work_status_label": "拍摄中"
|
||||
},
|
||||
"plane_status": {
|
||||
"scenic_id": 271,
|
||||
"connected": true,
|
||||
"has_idle": false,
|
||||
"has_shooting": true,
|
||||
"planes": [
|
||||
{
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
}
|
||||
],
|
||||
"recommend": {
|
||||
"id": 58,
|
||||
"name": "示例无人机1号",
|
||||
"sn_number": "DEMO_DOCK_SN",
|
||||
"online_status": 1,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中",
|
||||
"is_receive_order": 2,
|
||||
"can_fly": false,
|
||||
"battery_percent": 95,
|
||||
"battery_label": "电量 95%",
|
||||
"status_text": "拍摄中 · 电量 95%",
|
||||
"task_type": 2
|
||||
},
|
||||
"poll_hint_ms": 5000
|
||||
},
|
||||
"poll_hint_ms": 5000,
|
||||
"metrics": [
|
||||
{
|
||||
"key": "battery",
|
||||
"label": "电池电量",
|
||||
"value": "95%",
|
||||
"raw": 95,
|
||||
"source": "airport"
|
||||
},
|
||||
{
|
||||
"key": "env_temp",
|
||||
"label": "环境温度",
|
||||
"value": "19.6℃",
|
||||
"raw": 19.6
|
||||
},
|
||||
{
|
||||
"key": "wind_speed",
|
||||
"label": "风速",
|
||||
"value": "2m/s",
|
||||
"raw": 2
|
||||
},
|
||||
{
|
||||
"key": "rainfall",
|
||||
"label": "雨量",
|
||||
"value": "无雨",
|
||||
"raw": "no_rain"
|
||||
},
|
||||
{
|
||||
"key": "signal",
|
||||
"label": "信号状态",
|
||||
"value": "无信号",
|
||||
"raw": "no_signal"
|
||||
},
|
||||
{
|
||||
"key": "satellite",
|
||||
"label": "搜星状态",
|
||||
"value": "32颗",
|
||||
"raw": 32
|
||||
}
|
||||
],
|
||||
"execute_gate": {
|
||||
"can_execute": true,
|
||||
"code": "ok",
|
||||
"message": "",
|
||||
"primary_action": "start_shoot",
|
||||
"primary_action_label": "开始拍摄"
|
||||
},
|
||||
"restart_gate": {
|
||||
"can_restart": false,
|
||||
"code": "running",
|
||||
"message": "任务执行中,请等待结束或返航后再试",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "执行中"
|
||||
},
|
||||
"flight_control": {
|
||||
"state": "executing",
|
||||
"is_airborne": true,
|
||||
"pause_reason": "arrival_wait",
|
||||
"resume_phase": "arrived_pending_start",
|
||||
"return_reason": null,
|
||||
"can_pause": true,
|
||||
"can_resume": false,
|
||||
"can_return_home": true,
|
||||
"dji_task_status": "paused",
|
||||
"drone_in_dock": "outside",
|
||||
"execution_batch": 9001,
|
||||
"pending_command": null,
|
||||
"evidence": {
|
||||
"drone_in_dock": "outside",
|
||||
"ever_left_dock": true,
|
||||
"ever_airborne": true,
|
||||
"probe_ok": true
|
||||
}
|
||||
},
|
||||
"ui": {
|
||||
"phase": "arrived_pending_start",
|
||||
"title": "无人机已到达 是否开始拍摄?",
|
||||
"message": "确认游客站位与取景后开始",
|
||||
"primary_action": "start_shoot",
|
||||
"primary_action_label": "开始拍摄",
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user