修改了卡路里,数值*0.1
authorliangzhenying <867174124@qq.com>
Tue, 18 Feb 2025 07:13:12 +0000 (15:13 +0800)
committerliangzhenying <867174124@qq.com>
Tue, 18 Feb 2025 07:13:12 +0000 (15:13 +0800)
IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate
IOTBluetooth/IOTBluetooth/IOTBluetooth/Models/IBTrainingData.swift

index 28a9979..a99126d 100644 (file)
Binary files a/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate and b/IOTBluetooth/IOTBluetooth/IOTBluetooth.xcworkspace/xcuserdata/yaozuopan.xcuserdatad/UserInterfaceState.xcuserstate differ
index 270c59e..34591bf 100644 (file)
@@ -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"]!