From 51b62b0954e3e69fb3afd521e774a173606e7554 Mon Sep 17 00:00:00 2001 From: anlicheng <244108715@qq.com> Date: Wed, 10 Sep 2025 17:31:56 +0800 Subject: [PATCH] add app version --- dimensionhub/Core/API.swift | 2 ++ 1 file changed, 2 insertions(+) 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 ?? "" ]