diff --git a/dimensionhub/Core/API.swift b/dimensionhub/Core/API.swift index 2103a8d..700f006 100644 --- a/dimensionhub/Core/API.swift +++ b/dimensionhub/Core/API.swift @@ -36,6 +36,7 @@ struct API { // 服务器地址 static let baseUrl = "https://dimensionhub.s5s8.com" + static let version = "v1.0" // 发送设备的token到服务 static func appInit(userId: String, as: T.Type) async -> APIResponse { @@ -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 ?? "" ]