环境温度数据为0也上传.有些设备是没有环境温度的.
authorTrillGates <williamtrillgates@gmail.com>
Sat, 22 Jan 2022 07:06:09 +0000 (15:06 +0800)
committerTrillGates <williamtrillgates@gmail.com>
Sat, 22 Jan 2022 07:06:09 +0000 (15:06 +0800)
app/release/ICSer_V1020_2201221500_release.apk [new file with mode: 0644]
app/release/output.json
app/src/main/java/com/enqualcomm/support/utils/TemperatureUtil.java
app/version_code.properties

diff --git a/app/release/ICSer_V1020_2201221500_release.apk b/app/release/ICSer_V1020_2201221500_release.apk
new file mode 100644 (file)
index 0000000..9d03c92
Binary files /dev/null and b/app/release/ICSer_V1020_2201221500_release.apk differ
index b56846a..7edd41c 100644 (file)
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1019,"versionName":"2112242133","enabled":true,"outputFile":"ICSer_V1019_2112242133_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1019_2112242133_release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkData":{"type":"MAIN","splits":[],"versionCode":1020,"versionName":"2201221500","enabled":true,"outputFile":"ICSer_V1020_2201221500_release.apk","fullName":"release","baseName":"release"},"path":"ICSer_V1020_2201221500_release.apk","properties":{}}]
\ No newline at end of file
index de2fc87..4439b21 100644 (file)
@@ -102,10 +102,11 @@ public class TemperatureUtil {
         public void onTemperatureGet(Temperature temperature) {
             ICLogger.d("onTemperatureGet ==> " + temperature);
             //如果环境温度为0,也不上传了,环境温度是不为0的,戴在手上,怎么可以为0呢?
-            if (temperature.getEnvTemp() == 0) {
-                ICLogger.d("环境温度为0,数据错误,不进行上报");
-                return;
-            }
+            //我又注释掉了,因为有些设备是没有环境温度的
+//            if (temperature.getEnvTemp() == 0) {
+//                ICLogger.d("环境温度为0,数据错误,不进行上报");
+//                return;
+//            }
             long currentTime = System.currentTimeMillis();
             boolean isSame = checkLastTemperature(lastTemperature, temperature);
             //120秒内有多次发送,则不在发送了
index 9ebaecd..0c46c6e 100644 (file)
@@ -1,2 +1,2 @@
-#Fri Dec 24 21:33:01 CST 2021\r
-VERSION_CODE=1019\r
+#Sat Jan 22 15:00:50 CST 2022\r
+VERSION_CODE=1020\r