add app version
This commit is contained in:
parent
9479eb2f22
commit
51b62b0954
@ -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 ?? ""
|
||||
]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user