add app version

This commit is contained in:
anlicheng 2025-09-10 17:31:56 +08:00
parent 9479eb2f22
commit 51b62b0954

View File

@ -36,6 +36,7 @@ struct API {
//
static let baseUrl = "https://dimensionhub.s5s8.com"
static let version = "v1.0"
// token
static func appInit<T: Codable>(userId: String, as: T.Type) async -> APIResponse<T> {
@ -45,6 +46,7 @@ struct API {
let parameters: [String:Any] = [
"user_id": userId,
"system": system,
"version": version,
"lang": NSLocale.preferredLanguages.first ?? "",
"vendorId": await UIDevice.current.identifierForVendor?.uuidString ?? ""
]