feat(drone-dock): 接入火山实时图传并保留禁飞保护

This commit is contained in:
2026-11-02 11:01:02 +08:00
parent c1fd2d0859
commit b21a3b6cb6
204 changed files with 112972 additions and 3274 deletions
@@ -140,7 +140,7 @@ final class DroneDockShootingTaskViewTests: XCTestCase {
XCTAssertEqual(request.url?.path, "/api/app/airport/shooting")
XCTAssertNil(request.httpBody)
let query = URLComponents(url: try XCTUnwrap(request.url), resolvingAgainstBaseURL: false)?.queryItems
XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "1")])
XCTAssertEqual(query, [URLQueryItem(name: "id", value: "501"), URLQueryItem(name: "live_battery", value: "0")])
}
}
@@ -517,7 +517,7 @@ private final class TaskViewReadService: DroneDockShootingServing {
init(response: DroneDockShootingResponse? = nil) throws { self.response = try response ?? TaskViewData.response() }
func shooting(taskID: Int, liveBattery: Bool) async throws -> DroneDockShootingResponse {
XCTAssertTrue(liveBattery)
XCTAssertFalse(liveBattery)
requests.append(taskID)
if let error = nextError {
nextError = nil