fix(open-platform): align realtime online status across protocols

This commit is contained in:
lingniu
2026-08-03 21:49:33 +08:00
parent 8539af13e6
commit 22f3904ad7
6 changed files with 68 additions and 5 deletions

View File

@@ -167,7 +167,8 @@ paths:
description: |
plateNumbers 省略或传空数组时返回应用当前有效授权的全部车辆。
实时来源优先级为 GB32960 > YUTONG_MQTT > JT808所有来源超过10分钟时改按最新记录选择。
记录时间距当前不超过60秒视为在线在线且速度大于3km/h为行驶中否则为静止中。
任一采集协议在最近60秒内上报即视为在线protocol、位置、速度和记录时间仍按上述来源优先级选择。
在线且所选来源速度大于3km/h为行驶中否则为静止中。
operationId: queryRealtimeVehicles
security:
- AppKeyAuth: []
@@ -714,7 +715,7 @@ components:
totalMileageKm: { type: number, format: double, nullable: true }
recordTime: { type: string }
timeDifferenceSeconds: { type: integer, format: int64, minimum: 0 }
online: { type: boolean }
online: { type: boolean, description: 任一采集协议是否在最近60秒内上报 }
motionStatus: { type: string, enum: [driving, idle, offline] }
locationAvailable: { type: boolean }
status: { $ref: '#/components/schemas/DataStatus' }