feat: 接入拍摄任务实时订阅并完善日志与封面

This commit is contained in:
2026-11-03 09:06:38 +08:00
parent 687088326c
commit 980d16da9b
27 changed files with 1790 additions and 64 deletions
@@ -31,7 +31,7 @@ nonisolated enum APIRedactedLog {
/// 生成请求、响应、失败和取消共用的模块标签与安全地址。
static func event(_ event: String, for request: URLRequest, category: String) -> String {
let url = request.url.map { redactedURL($0, keepsQuery: true) } ?? "<invalid url>"
return "[API][\(category)][\(event)] \(request.httpMethod ?? "REQUEST") \(url)"
return "\(APIConsoleFormat.prefix(event, path: request.url?.path ?? "", category: category)) \(request.httpMethod ?? "REQUEST") \(url)"
}
/// 非 JSON 正文可能包含凭证或服务端调试页面,不把原始文本写入控制台。