From: liangzhenying <867174124@qq.com> Date: Tue, 18 Feb 2025 07:13:12 +0000 (+0800) Subject: 修改了卡路里,数值*0.1 X-Git-Url: http://git.snicker.com.cn/sitemap.xml?a=commitdiff_plain;h=6d37b7c39636f02a9e4ec0592b6c61c6da7acd12;p=mirrors%2FIOTBluetooth-iOS.git 修改了卡路里,数值*0.1 --- diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate index 28a9979..a99126d 100644 Binary files a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate and b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/IOTBluetooth/IOTBluetooth/IOTBluetooth/Models/IBTrainingData.swift b/IOTBluetooth/IOTBluetooth/IOTBluetooth/Models/IBTrainingData.swift index 270c59e..34591bf 100644 --- a/IOTBluetooth/IOTBluetooth/IOTBluetooth/Models/IBTrainingData.swift +++ b/IOTBluetooth/IOTBluetooth/IOTBluetooth/Models/IBTrainingData.swift @@ -36,7 +36,7 @@ public struct IBTrainingData { guard let dict = data.jsonObject() as? [String: Int] else { return nil } self.startTime = dict["st"]! self.heartRate = dict["hr"]! - self.calorie = dict["ca"]! + self.calorie = Int(Double(dict["ca"]!) * 0.1) self.distance = dict["di"]! self.stepCount = dict["stp"]! self.intensity = dict["ti"]!