fix: 精简接口日志并补充已支付航拍订单退款入口
统一 HTTP 和 WebSocket 控制台 JSON 输出,保留完整入参、响应及本地错误。为多点位航拍订单增加已支付退款入口和回归测试,并同步联调文档、接口记录及截图。
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004"
|
||||
},
|
||||
"response": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"can_confirm": false,
|
||||
"can_create_task": true,
|
||||
"can_upload_film": true,
|
||||
"confirm_status": 0,
|
||||
"confirmed_at": null,
|
||||
"created_at": "2026-10-27 17:39:10",
|
||||
"film_count": 0,
|
||||
"material_status": 0,
|
||||
"order_number": "261027271004",
|
||||
"order_status": 20,
|
||||
"project_id": 386,
|
||||
"project_name": "多点位航拍",
|
||||
"remaining_count": 5,
|
||||
"shoot_count": 5,
|
||||
"shoot_status": "processing",
|
||||
"shot_count": 0,
|
||||
"spot": [
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 302,
|
||||
"air_line_name": "天门寻梦",
|
||||
"available": true,
|
||||
"samples": [
|
||||
{
|
||||
"cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png",
|
||||
"id": 318,
|
||||
"name": "天门寻梦",
|
||||
"preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4"
|
||||
}
|
||||
],
|
||||
"unavailable_reason": ""
|
||||
}
|
||||
],
|
||||
"available": true,
|
||||
"cover_url": "",
|
||||
"region": {
|
||||
"address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心",
|
||||
"lat": 32.429597,
|
||||
"lot": 119.440283,
|
||||
"scenic_spot_str": "北大科技园"
|
||||
},
|
||||
"sample_piece_ids": [
|
||||
318
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"id": 318,
|
||||
"name": "天门寻梦"
|
||||
}
|
||||
],
|
||||
"scenic_spot_id": 412,
|
||||
"scenic_spot_name": "天门寻梦"
|
||||
},
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 304,
|
||||
"air_line_name": "天门远山",
|
||||
"available": true,
|
||||
"samples": [
|
||||
{
|
||||
"cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png",
|
||||
"id": 319,
|
||||
"name": "天门远山",
|
||||
"preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4"
|
||||
}
|
||||
],
|
||||
"unavailable_reason": ""
|
||||
}
|
||||
],
|
||||
"available": true,
|
||||
"cover_url": "",
|
||||
"region": {
|
||||
"address": "江苏省扬州市邗江区城北街道花都汇商务中心",
|
||||
"lat": 32.429872,
|
||||
"lot": 119.440194,
|
||||
"scenic_spot_str": "天门远山"
|
||||
},
|
||||
"sample_piece_ids": [
|
||||
319
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"id": 319,
|
||||
"name": "天门远山"
|
||||
}
|
||||
],
|
||||
"scenic_spot_id": 413,
|
||||
"scenic_spot_name": "天门远山"
|
||||
}
|
||||
],
|
||||
"user_phone": "130****0004"
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:17:25"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://api-test.zhifly.cn/api/app/airport/plane-status?scenic_id=271&live_battery=1"
|
||||
},
|
||||
"response": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"connected": true,
|
||||
"has_idle": true,
|
||||
"has_shooting": false,
|
||||
"planes": [
|
||||
{
|
||||
"battery_label": "",
|
||||
"battery_percent": null,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 1,
|
||||
"name": "测试无人机 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "离线",
|
||||
"task_type": null,
|
||||
"work_status": 0,
|
||||
"work_status_label": "离线"
|
||||
},
|
||||
{
|
||||
"battery_label": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": false,
|
||||
"id": 58,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试无人机 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"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": "电量 93%",
|
||||
"battery_percent": 93,
|
||||
"can_fly": false,
|
||||
"id": 58,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试无人机 58",
|
||||
"online_status": 1,
|
||||
"sn_number": "TEST-PLANE-58",
|
||||
"status_text": "空闲 · 电量 93%",
|
||||
"task_type": null,
|
||||
"work_status": 1,
|
||||
"work_status_label": "空闲"
|
||||
},
|
||||
"scenic_id": 271
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:18:55"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,109 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "GET",
|
||||
"url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/project-info?scenic_id=271&project_id=386&order_number=261027271004"
|
||||
},
|
||||
"response": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"can_confirm": false,
|
||||
"can_create_task": true,
|
||||
"can_upload_film": true,
|
||||
"confirm_status": 0,
|
||||
"confirmed_at": null,
|
||||
"created_at": "2026-10-27 17:39:10",
|
||||
"film_count": 0,
|
||||
"material_status": 0,
|
||||
"order_number": "261027271004",
|
||||
"order_status": 20,
|
||||
"project_id": 386,
|
||||
"project_name": "多点位航拍",
|
||||
"remaining_count": 5,
|
||||
"shoot_count": 5,
|
||||
"shoot_status": "processing",
|
||||
"shot_count": 0,
|
||||
"spot": [
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 302,
|
||||
"air_line_name": "天门寻梦",
|
||||
"available": true,
|
||||
"samples": [
|
||||
{
|
||||
"cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17762401434725.png",
|
||||
"id": 318,
|
||||
"name": "天门寻梦",
|
||||
"preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776240058674_lgjimv.mp4"
|
||||
}
|
||||
],
|
||||
"unavailable_reason": ""
|
||||
}
|
||||
],
|
||||
"available": true,
|
||||
"cover_url": "",
|
||||
"region": {
|
||||
"address": "江苏省扬州市邗江区城北街道北大科技园花都汇商务中心",
|
||||
"lat": 32.429597,
|
||||
"lot": 119.440283,
|
||||
"scenic_spot_str": "北大科技园"
|
||||
},
|
||||
"sample_piece_ids": [
|
||||
318
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"id": 318,
|
||||
"name": "天门寻梦"
|
||||
}
|
||||
],
|
||||
"scenic_spot_id": 412,
|
||||
"scenic_spot_name": "天门寻梦"
|
||||
},
|
||||
{
|
||||
"air_lines": [
|
||||
{
|
||||
"air_line_id": 304,
|
||||
"air_line_name": "天门远山",
|
||||
"available": true,
|
||||
"samples": [
|
||||
{
|
||||
"cover_url": "https://fly-picture.tos-cn-beijing.volces.com/202604/17768529312831.png",
|
||||
"id": 319,
|
||||
"name": "天门远山",
|
||||
"preview_url": "https://zhongchuan-picture.oss-cn-beijing.aliyuncs.com/simplepic/202604/1776852306874_5jh4xz.mp4"
|
||||
}
|
||||
],
|
||||
"unavailable_reason": ""
|
||||
}
|
||||
],
|
||||
"available": true,
|
||||
"cover_url": "",
|
||||
"region": {
|
||||
"address": "江苏省扬州市邗江区城北街道花都汇商务中心",
|
||||
"lat": 32.429872,
|
||||
"lot": 119.440194,
|
||||
"scenic_spot_str": "天门远山"
|
||||
},
|
||||
"sample_piece_ids": [
|
||||
319
|
||||
],
|
||||
"samples": [
|
||||
{
|
||||
"id": 319,
|
||||
"name": "天门远山"
|
||||
}
|
||||
],
|
||||
"scenic_spot_id": 413,
|
||||
"scenic_spot_name": "天门远山"
|
||||
}
|
||||
],
|
||||
"user_phone": "130****0004"
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:18:59"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "https://api-test.zhifly.cn/api/yf-handset-app/photog/multi-plane/tasks/create",
|
||||
"body": {
|
||||
"air_line_id": 302,
|
||||
"order_number": "261027271004",
|
||||
"scenic_id": 271,
|
||||
"scenic_spot_id": 412
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"can_confirm": false,
|
||||
"can_create_task": true,
|
||||
"can_upload_film": true,
|
||||
"confirm_status": 0,
|
||||
"confirmed_at": null,
|
||||
"created_at": "2026-10-27 17:39:10",
|
||||
"film_count": 0,
|
||||
"material_status": 0,
|
||||
"order_number": "261027271004",
|
||||
"order_status": 20,
|
||||
"project_id": 386,
|
||||
"project_name": "多点位航拍",
|
||||
"remaining_count": 5,
|
||||
"shoot_count": 5,
|
||||
"shoot_status": "processing",
|
||||
"shot_count": 0,
|
||||
"task_id": 11,
|
||||
"user_phone": "130****0004"
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:18:59"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"request": {
|
||||
"method": "POST",
|
||||
"url": "https://api-test.zhifly.cn/api/app/airport/shoot",
|
||||
"body": {
|
||||
"id": 11,
|
||||
"restart": false
|
||||
}
|
||||
},
|
||||
"response": {
|
||||
"http_status": 200,
|
||||
"body": {
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"air_line_id": 302,
|
||||
"air_line_name": "天门寻梦",
|
||||
"airport_sn": "TEST-PLANE-61",
|
||||
"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_progress": {
|
||||
"order_number": "261027271004",
|
||||
"package_name": "单次航拍 · 含 1 次拍摄",
|
||||
"shot_remain": 1,
|
||||
"shot_total": 1,
|
||||
"shot_used": 0,
|
||||
"status_label": "待拍摄"
|
||||
},
|
||||
"plane_id": 61,
|
||||
"task_id": 1931,
|
||||
"task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c",
|
||||
"ui": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
],
|
||||
"message": "是否开始拍摄?确认游客站位与取景后开始",
|
||||
"phase": "arrived_pending_start",
|
||||
"primary_action": "start_shoot",
|
||||
"title": "无人机已到达"
|
||||
}
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:19:01"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"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": 2,
|
||||
"task_type": 2,
|
||||
"work_status_label": "拍摄中"
|
||||
},
|
||||
"current_plane": {
|
||||
"battery_label": "电量 94%",
|
||||
"battery_percent": 94,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试无人机 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "拍摄中 · 电量 94%",
|
||||
"task_type": 2,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中"
|
||||
},
|
||||
"execute_gate": {
|
||||
"can_execute": true,
|
||||
"code": "ok",
|
||||
"message": "",
|
||||
"primary_action": "start_shoot",
|
||||
"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": true,
|
||||
"planes": [
|
||||
{
|
||||
"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": "离线"
|
||||
},
|
||||
{
|
||||
"battery_label": "电量 94%",
|
||||
"battery_percent": 94,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试无人机 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "拍摄中 · 电量 94%",
|
||||
"task_type": 2,
|
||||
"work_status": 2,
|
||||
"work_status_label": "拍摄中"
|
||||
}
|
||||
],
|
||||
"poll_hint_ms": 5000,
|
||||
"recommend": {
|
||||
"battery_label": "电量 94%",
|
||||
"battery_percent": 94,
|
||||
"can_fly": false,
|
||||
"id": 61,
|
||||
"is_receive_order": 2,
|
||||
"name": "测试无人机 61",
|
||||
"online_status": 2,
|
||||
"sn_number": "TEST-PLANE-61",
|
||||
"status_text": "拍摄中 · 电量 94%",
|
||||
"task_type": 2,
|
||||
"work_status": 2,
|
||||
"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": 20,
|
||||
"wayline_status_label": "拍摄中",
|
||||
"wayline_task_id": 1931
|
||||
},
|
||||
"ui": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "flighttask_pause",
|
||||
"label": "紧急暂停",
|
||||
"sub": "悬停待命"
|
||||
},
|
||||
{
|
||||
"command": "return_home",
|
||||
"label": "立即返航",
|
||||
"sub": "中断任务"
|
||||
}
|
||||
],
|
||||
"message": "确认游客站位与取景后开始",
|
||||
"phase": "arrived_pending_start",
|
||||
"primary_action": "start_shoot",
|
||||
"primary_action_label": "开始拍摄",
|
||||
"title": "无人机已到达 是否开始拍摄?"
|
||||
}
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:19:04"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,227 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
# 模拟器起飞流程联调记录 · 2026-10-29 17:16–17:20
|
||||
|
||||
本次已在模拟器从真实机巢首页进入拍摄准备,点击一次“确认并召唤”。`tasks/create → shoot → shooting` 串接成功并自动进入拍摄任务页,但 55 秒后手动回查发现航线执行失败。只能确认召唤请求被服务端受理,不能确认无人机实际起飞或到达成功。
|
||||
|
||||
## 环境和任务身份
|
||||
|
||||
- 测试环境:`https://api-test.zhifly.cn`;时间均为北京时间(Asia/Shanghai)。
|
||||
- iPhone 18 Pro 模拟器,iOS 27.0,`suixinkan-Simulator / SimulatorDebug`;构建与运行成功。
|
||||
- 当前门店账号,景区 `271`,项目 `386`,订单 `261027271004`。
|
||||
- 页面选择点位 `412`(天门寻梦)、航线 `302`(天门寻梦)。
|
||||
- 本次新建订单飞行任务 **11**;派机 **61**;航线任务 **1931**;任务 UUID `917d0fdf-d55b-4263-889a-aae81d99cd7c`。
|
||||
- `shoot.data.task_id=1931` 是航线任务 ID;后续查询始终使用 `shooting?id=11`。
|
||||
|
||||
## 实际请求与响应
|
||||
|
||||
以下所有已收到的响应均为 HTTP `200`、业务 `code=100000`。JSON 文件同时保存请求 method、完整 URL/body,以及 HTTP 状态和完整业务响应;设备 SN/名称与游客脱敏手机号已替换为测试值,其余字段保留真实值和类型。
|
||||
|
||||
| 响应时间 | 提供人 / 接口 | 关键返回 | 完整记录 |
|
||||
| --- | --- | --- | --- |
|
||||
| 17:17:25 | 张工 `GET /api/yf-handset-app/photog/multi-plane/project-info` | 总次数/剩余次数 5,`can_create_task=true`,点位 412 / 航线 302 可用 | [首次准备数据](01-project-info-initial.json) |
|
||||
| 17:18:55 | 朱工 `GET /api/app/airport/plane-status` | 58 空闲、电量 93%,但 `can_fly=false`、`is_receive_order=2`;61、57 离线;三个设备的 `can_fly` 均为 false | [提交前设备状态](02-plane-status-before-summon.json) |
|
||||
| 17:18:59 | 张工 `GET /api/yf-handset-app/photog/multi-plane/project-info` | 点击后的购买配置复核通过,仍剩余 5 次 | [提交前购买复核](03-project-info-preflight.json) |
|
||||
| 17:18:59 | 张工 `POST /api/yf-handset-app/photog/multi-plane/tasks/create` | `task_id=11`,总/剩余次数仍为 5 | [创建任务](04-tasks-create.json) |
|
||||
| 17:19:01 | 朱工 `POST /api/app/airport/shoot` | 任务 11 绑定飞机 61 / 航线任务 1931;`ui.phase=arrived_pending_start` | [召唤回执](05-shoot.json) |
|
||||
| 17:19:04 | 朱工 `GET /api/app/airport/shooting?id=11&live_battery=1` | `task.wayline_status=20`,`execute_gate.can_execute=true`,文案“无人机已到达 是否开始拍摄?” | [进入任务页](06-shooting-entry.json) |
|
||||
| 17:19:59 | 朱工同一 `shooting`,点击导航栏刷新一次 | `wayline_status=91` 执行失败,`can_execute=false`、`code=wayline_not_shooting`,飞机 61 离线 | [手动回查](07-shooting-refresh.json) |
|
||||
|
||||
创建请求:
|
||||
|
||||
```json
|
||||
{
|
||||
"air_line_id": 302,
|
||||
"order_number": "261027271004",
|
||||
"scenic_id": 271,
|
||||
"scenic_spot_id": 412
|
||||
}
|
||||
```
|
||||
|
||||
召唤请求(没有传 `plane_id`,由服务端派机;没有覆盖航线):
|
||||
|
||||
```json
|
||||
{
|
||||
"id": 11,
|
||||
"restart": false
|
||||
}
|
||||
```
|
||||
|
||||
最后一次 `shooting` 的关键返回(节选,完整 JSON 见表格):
|
||||
|
||||
```json
|
||||
{
|
||||
"code": 100000,
|
||||
"data": {
|
||||
"task": {
|
||||
"id": 11,
|
||||
"status": 20,
|
||||
"status_label": "执行中",
|
||||
"task_uuid": "917d0fdf-d55b-4263-889a-aae81d99cd7c",
|
||||
"wayline_status": 91,
|
||||
"wayline_status_label": "执行失败",
|
||||
"wayline_task_id": 1931
|
||||
},
|
||||
"execute_gate": {
|
||||
"can_execute": false,
|
||||
"code": "wayline_not_shooting",
|
||||
"message": "航线任务状态不可拍摄(当前:执行失败)",
|
||||
"primary_action": "blocked",
|
||||
"primary_action_label": "航线任务状态不可拍摄(当前:执行失败)"
|
||||
}
|
||||
},
|
||||
"msg": "success",
|
||||
"time": "2026-10-29 17:19:59"
|
||||
}
|
||||
```
|
||||
|
||||
## 页面实际表现
|
||||
|
||||
- 首页点击该订单“开始拍摄”后进入准备页,再读取 `project-info` 与 `plane-status`。
|
||||
- 点击一次“确认并召唤”,先复核购买数据,再创建任务 11 并召唤;召唤返回后自动进入任务页。
|
||||
- 首次显示“无人机已到达 是否开始拍摄?”,六项读数为 `94% / 10.3℃ / 0m/s / 无雨 / 信号良好 / 17颗`。
|
||||
- 导航栏手动刷新后,显示“执行失败”和后端原因,设备显示“离线 · 电量94%”。
|
||||
- “开始拍摄”、暂停、返航尚未接入控制 API,按钮保持禁用。本次没有调用 `start-shoot`、`command`,也没有重建或重试召唤。
|
||||
- `shooting` 仅调用两次(进页一次、明确手动刷新一次),未恢复定时轮询。
|
||||
|
||||
本地截图(含真实页面信息,保留本地,不随代码提交):`preparation-local.jpg`、`task11-arrived-local.jpg`、`task11-failed-local.jpg`。
|
||||
|
||||
## 后端待核对事项
|
||||
|
||||
1. **朱工:定位航线任务 1931 的失败原因。** 首次查询 17:19:04 仍为状态 20,17:19:59 回查为 91;返回的 `result_code/result_message` 仍为空,客户端无法得知具体失败环节。请结合任务 UUID、飞机 61 和大疆/司空日志核查。
|
||||
2. **朱工:核对自动派机与执行门禁。** 召唤前飞机 61 是 `online_status=2/work_status=0/can_fly=false`,仍被 `shoot` 选中;首次 `shooting.current_plane.online_status=2/can_fly=false`,但门禁 `can_execute=true`。需要明确字段来源及允许派机/开始的条件,不能仅凭“已到达”文案确认物理状态,也不能从现有回执断定离线字段与失败存在因果关系。
|
||||
3. **朱工与张工:统一订单套餐次数。** 张工 `project-info/tasks/create` 是“多点位航拍”、总/剩余 5 次;朱工 `shoot.order_progress`、`shooting.header` 是“单次航拍 · 含1次拍摄”、总/剩余 1 次。当前 App 如实显示各接口返回。
|
||||
4. **朱工:统一通用响应示例。** 最新文档仍写成功 `code=0/message`,本次实际全部为 `code=100000/msg`,与现有客户端解析一致。
|
||||
|
||||
## 记录范围
|
||||
|
||||
[所有请求与响应](all-api-records.redacted.json) 共 25 条请求记录:主页 3 次、`project-info` 2 次、准备页 `plane-status` 16 次、创建 1 次、召唤 1 次、任务查询 2 次。准备页轮询中的最后一次请求在页面跳转时取消,日志为 `URLError.cancelled`,没有响应 JSON;其余 24 条均保留完整回执。准备页的既有轮询和任务页的单次读取相互独立。
|
||||
|
||||
[核验元数据](verification.json) 包含请求次数及原运行日志路径;原始未脱敏请求响应保留于本机 `/private/tmp/suixinkan-takeoff-20261029-1718-api-raw.json`。本次只进行模拟器联调与记录,没有修改业务代码。
|
||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 31 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 39 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 42 KiB |
@@ -0,0 +1,39 @@
|
||||
{
|
||||
"tested_at": "2026-10-29",
|
||||
"timezone": "Asia/Shanghai",
|
||||
"environment": "https://api-test.zhifly.cn",
|
||||
"simulator": "iPhone 18 Pro / iOS 27.0",
|
||||
"order_number": "261027271004",
|
||||
"scenic_id": 271,
|
||||
"project_id": 386,
|
||||
"scenic_spot_id": 412,
|
||||
"air_line_id": 302,
|
||||
"task_id": 11,
|
||||
"wayline_task_id": 1931,
|
||||
"plane_id": 61,
|
||||
"request_counts": {
|
||||
"GET /api/app/airport/home": 1,
|
||||
"GET /api/yf-handset-app/photog/multi-plane/today-stats": 1,
|
||||
"GET /api/yf-handset-app/photog/multi-plane/orders": 1,
|
||||
"GET /api/app/airport/plane-status": 16,
|
||||
"GET /api/yf-handset-app/photog/multi-plane/project-info": 2,
|
||||
"POST /api/yf-handset-app/photog/multi-plane/tasks/create": 1,
|
||||
"POST /api/app/airport/shoot": 1,
|
||||
"GET /api/app/airport/shooting": 2
|
||||
},
|
||||
"all_http_statuses": [
|
||||
200
|
||||
],
|
||||
"all_business_codes": [
|
||||
100000
|
||||
],
|
||||
"last_observation": {
|
||||
"time": "2026-10-29 17:19:59",
|
||||
"task_status": 20,
|
||||
"wayline_status": 91,
|
||||
"gate_can_execute": false
|
||||
},
|
||||
"redaction": "设备SN替换为TEST-PLANE-id,设备名称及游客脱敏手机号替换为测试值;其它字段与真实回执一致。",
|
||||
"raw_local_path": "/private/tmp/suixinkan-takeoff-20261029-1718-api-raw.json",
|
||||
"runtime_log_path": "/Users/hanqiu/Library/Developer/XcodeBuildMCP/workspaces/suixinkan-a3033d697ba3/logs/com.yuanzhixiang.suixinkan_2026-10-29T09-16-37-232Z_helperpid61913_ownerpid15238_24c18594.log"
|
||||
}
|
||||
Reference in New Issue
Block a user