From 3bb4fb15c664d29d179083698fdad35a661b1d7f Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 28 八月 2025 14:57:40 +0800
Subject: [PATCH] 2025.8.28 1. 添加走航季度报告相关统计功能(待完成)

---
 src/main/kotlin/com/flightfeather/uav/socket/decoder/DataUnitDecoder.kt |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/main/kotlin/com/flightfeather/uav/socket/decoder/DataUnitDecoder.kt b/src/main/kotlin/com/flightfeather/uav/socket/decoder/DataUnitDecoder.kt
index 6b848c4..2961874 100644
--- a/src/main/kotlin/com/flightfeather/uav/socket/decoder/DataUnitDecoder.kt
+++ b/src/main/kotlin/com/flightfeather/uav/socket/decoder/DataUnitDecoder.kt
@@ -5,7 +5,6 @@
 import com.flightfeather.uav.socket.eunm.FactorType
 import org.slf4j.LoggerFactory
 import java.text.SimpleDateFormat
-import java.util.*
 
 /**
  * uav 绗簩灞傛暟鎹崟鍏冭В鐮佸櫒
@@ -24,7 +23,7 @@
     fun getAirConfirmData(b: List<String>, deviceCode: String?): List<AirTypeData> {
         val resultList = mutableListOf<AirTypeData>()
         b.forEach {
-            FactorType.getByIndex(it.toInt(16))?.let { f->
+            FactorType.getByValue(it.toInt(16))?.let { f->
                 resultList.add(AirTypeData(f))
             }
         }

--
Gitblit v1.9.3