统一 HTTP 和 WebSocket 控制台 JSON 输出,保留完整入参、响应及本地错误。为多点位航拍订单增加已支付退款入口和回归测试,并同步联调文档、接口记录及截图。
228 lines
6.7 KiB
JSON
228 lines
6.7 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|