完善机巢任务实时同步并开放双构建真实操作
订阅明确无缓存时使用新发起的有效 HTTP 全量响应衔接首包,保留任务、批次和版本校验。 移除 Debug/Release 的设备指令、图传和 RTC 构建拦截,保留后端权限、身份、防重复提交及结果未知保护。 更新开发约定并补充隔离传输、飞控状态和页面回归测试。 验证:iPhone 真机 500 项相关测试通过;iOS Release 无签名编译通过。
This commit is contained in:
@@ -40,7 +40,6 @@ enum DroneDockDiagnostics {
|
||||
/// 记录业务码、HTTP 状态及原始错误说明,便于与后端回包对应。
|
||||
static func errorFields(_ error: Error) -> [String: Any] {
|
||||
if error is CancellationError { return ["kind": "cancelled"] }
|
||||
if error is DeviceCommandDebugBlockedError { return ["kind": "locally_blocked", "sent": false] }
|
||||
if case APIError.serverCode(let code, let message) = error {
|
||||
return ["kind": "business_rejected", "code": code, "message": message]
|
||||
}
|
||||
@@ -136,8 +135,6 @@ struct DroneDockRequestTrace {
|
||||
#else
|
||||
fields["build"] = "Release"
|
||||
#endif
|
||||
fields["flight_blocked"] = DeviceCommandDebugPolicy.blocksFlightRequests
|
||||
fields["live_blocked"] = DeviceCommandDebugPolicy.blocksLiveRequests
|
||||
let items = request.url.flatMap { URLComponents(url: $0, resolvingAgainstBaseURL: false)?.queryItems } ?? []
|
||||
fields["query"] = items.map { [$0.name: $0.value ?? ""] }
|
||||
return DroneDockDiagnostics.json(fields)
|
||||
|
||||
Reference in New Issue
Block a user