feat(drone-dock): 接入图传与重召唤的本地模拟流程

新增 live 接口、状态展示和本地视频预览;支持同任务重新召唤、单次回查和防重,保留禁飞拦截。同步测试、模拟证据、后端接口确认文档及景区空境库范围约定。

验证:168 个相关用例最终均通过;最后复跑 38 项零失败。真实设备指令未发送。
This commit is contained in:
2026-11-02 09:49:17 +08:00
parent 2913273e35
commit c1fd2d0859
33 changed files with 3246 additions and 84 deletions
@@ -0,0 +1,230 @@
{
"command_scenario" : "success",
"description" : "纯内存模拟,未调用后端或设备",
"network_sent" : false,
"records" : [
{
"http_status" : 200,
"method" : "GET",
"path" : "/api/app/airport/shooting",
"query" : "id=901&live_battery=1",
"response_body" : {
"code" : 100000,
"data" : {
"air_line" : {
"id" : 401,
"name" : "模拟航线",
"scenic_spot_id" : 301
},
"current_plane" : {
"id" : 201,
"online_status" : 1,
"sn_number" : "LOCAL-MOCK-PLANE-201",
"status_text" : "本地模拟 · 空闲 · 电量95%",
"work_status" : 1,
"work_status_label" : "空闲"
},
"execute_gate" : {
"can_execute" : false,
"code" : "ok",
"message" : "本地模拟:允许验证开拍请求",
"primary_action" : "failed",
"primary_action_label" : "开始拍摄"
},
"header" : {
"order_number" : "LOCAL-MOCK-ORDER-901",
"package_name" : "模拟套餐 · 含5次拍摄",
"title" : "模拟点位 · 模拟航线",
"tourist_label" : "本地模拟,无设备指令"
},
"metrics" : [
{
"key" : "battery",
"value" : "95%"
},
{
"key" : "env_temp",
"value" : "20.3℃"
},
{
"key" : "wind_speed",
"value" : "0m/s"
},
{
"key" : "rainfall",
"value" : "无雨"
},
{
"key" : "signal",
"value" : "良好"
},
{
"key" : "satellite",
"value" : "36颗"
}
],
"order_flight_task" : {
"id" : 901,
"order_number" : "LOCAL-MOCK-ORDER-901",
"result_message" : "本地模拟:航线执行失败,无人机空闲待命。",
"scenic_id" : 128,
"status" : 40,
"status_label" : "任务失败(模拟)",
"wayline_status" : 91,
"wayline_status_label" : "执行失败(模拟)"
},
"order_number" : "LOCAL-MOCK-ORDER-901",
"plane_status" : {
"connected" : true,
"poll_hint_ms" : 5000,
"scenic_id" : 128
},
"scenic" : {
"id" : 128,
"name" : "本地模拟景区"
},
"scenic_spot" : {
"id" : 301,
"name" : "模拟点位"
},
"task" : {
"id" : 901,
"order_number" : "LOCAL-MOCK-ORDER-901",
"result_message" : "本地模拟:航线执行失败,无人机空闲待命。",
"scenic_id" : 128,
"status" : 40,
"status_label" : "任务失败(模拟)",
"wayline_status" : 91,
"wayline_status_label" : "执行失败(模拟)"
},
"ui" : {
"commands" : [
],
"message" : "本地模拟状态回查,未向设备发送指令。",
"phase" : "failed",
"title" : "本地模拟:航线执行失败,可验证重新召唤流程"
}
},
"msg" : "local mock success"
}
},
{
"error" : "未能完成操作。(NSURLErrorDomain错误-1001。)",
"method" : "POST",
"path" : "/api/app/airport/shoot",
"request_body" : {
"id" : 901,
"restart" : true
}
},
{
"http_status" : 200,
"method" : "GET",
"path" : "/api/app/airport/shooting",
"query" : "id=901&live_battery=1",
"response_body" : {
"code" : 100000,
"data" : {
"air_line" : {
"id" : 401,
"name" : "模拟航线",
"scenic_spot_id" : 301
},
"current_plane" : {
"id" : 201,
"online_status" : 1,
"sn_number" : "LOCAL-MOCK-PLANE-201",
"status_text" : "本地模拟 · 空闲 · 电量95%",
"work_status" : 1,
"work_status_label" : "空闲"
},
"execute_gate" : {
"can_execute" : false,
"code" : "ok",
"message" : "本地模拟:允许验证开拍请求",
"primary_action" : "failed",
"primary_action_label" : "开始拍摄"
},
"header" : {
"order_number" : "LOCAL-MOCK-ORDER-901",
"package_name" : "模拟套餐 · 含5次拍摄",
"title" : "模拟点位 · 模拟航线",
"tourist_label" : "本地模拟,无设备指令"
},
"metrics" : [
{
"key" : "battery",
"value" : "95%"
},
{
"key" : "env_temp",
"value" : "20.3℃"
},
{
"key" : "wind_speed",
"value" : "0m/s"
},
{
"key" : "rainfall",
"value" : "无雨"
},
{
"key" : "signal",
"value" : "良好"
},
{
"key" : "satellite",
"value" : "36颗"
}
],
"order_flight_task" : {
"id" : 901,
"order_number" : "LOCAL-MOCK-ORDER-901",
"result_message" : "本地模拟:航线执行失败,无人机空闲待命。",
"scenic_id" : 128,
"status" : 40,
"status_label" : "任务失败(模拟)",
"wayline_status" : 91,
"wayline_status_label" : "执行失败(模拟)"
},
"order_number" : "LOCAL-MOCK-ORDER-901",
"plane_status" : {
"connected" : true,
"poll_hint_ms" : 5000,
"scenic_id" : 128
},
"scenic" : {
"id" : 128,
"name" : "本地模拟景区"
},
"scenic_spot" : {
"id" : 301,
"name" : "模拟点位"
},
"task" : {
"id" : 901,
"order_number" : "LOCAL-MOCK-ORDER-901",
"result_message" : "本地模拟:航线执行失败,无人机空闲待命。",
"scenic_id" : 128,
"status" : 40,
"status_label" : "任务失败(模拟)",
"wayline_status" : 91,
"wayline_status_label" : "执行失败(模拟)"
},
"ui" : {
"commands" : [
],
"message" : "本地模拟状态回查,未向设备发送指令。",
"phase" : "failed",
"title" : "本地模拟:航线执行失败,可验证重新召唤流程"
}
},
"msg" : "local mock success"
}
}
],
"scenario" : "success",
"source" : "local_mock"
}