Compare commits
2 Commits
e6f29e9a4e
...
61d7c3501f
| Author | SHA1 | Date | |
|---|---|---|---|
| 61d7c3501f | |||
| 11070a4b2f |
@ -1721,7 +1721,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 169;
|
CURRENT_PROJECT_VERSION = 170;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||||
@ -1750,7 +1750,7 @@
|
|||||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||||
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
CODE_SIGN_ENTITLEMENTS = AutoCat/AutoCat.entitlements;
|
||||||
CODE_SIGN_STYLE = Automatic;
|
CODE_SIGN_STYLE = Automatic;
|
||||||
CURRENT_PROJECT_VERSION = 169;
|
CURRENT_PROJECT_VERSION = 170;
|
||||||
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
DEVELOPMENT_TEAM = 46DTTB8X4S;
|
||||||
INFOPLIST_FILE = AutoCat/Info.plist;
|
INFOPLIST_FILE = AutoCat/Info.plist;
|
||||||
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
INFOPLIST_KEY_CFBundleDisplayName = AutoCat;
|
||||||
|
|||||||
@ -276,6 +276,10 @@ public actor ApiService: ApiServiceProtocol {
|
|||||||
body["events"] = AnyEncodable(events)
|
body["events"] = AnyEncodable(events)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let avtocodReport {
|
||||||
|
body["avtocodReport"] = AnyEncodable(avtocodReport)
|
||||||
|
}
|
||||||
|
|
||||||
return try await makeBodyRequest(api: "vehicles/check", body: body)
|
return try await makeBodyRequest(api: "vehicles/check", body: body)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -364,7 +368,7 @@ public actor ApiService: ApiServiceProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
urlComponents.queryItems = [
|
urlComponents.queryItems = [
|
||||||
URLQueryItem(name: "number", value: number.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)),
|
URLQueryItem(name: "number", value: number),
|
||||||
URLQueryItem(name: "type", value: numberType.value),
|
URLQueryItem(name: "type", value: numberType.value),
|
||||||
URLQueryItem(name: "device_token", value: UUID().uuidString)
|
URLQueryItem(name: "device_token", value: UUID().uuidString)
|
||||||
]
|
]
|
||||||
|
|||||||
@ -11,4 +11,6 @@ import Foundation
|
|||||||
struct AvtocodResponse: Decodable {
|
struct AvtocodResponse: Decodable {
|
||||||
|
|
||||||
let report_uri: String?
|
let report_uri: String?
|
||||||
|
let token: String?
|
||||||
|
let available_reports: Int?
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user