From 276d837c0bb808e6d93ac7c7ba6abe654c75552e Mon Sep 17 00:00:00 2001
From: lty <876263681@qq.com>
Date: 星期一, 09 二月 2026 08:45:45 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/StaProtocol.java |  116 +++++++++++++++++++++------------------------------------
 1 files changed, 43 insertions(+), 73 deletions(-)

diff --git a/src/main/java/com/zy/core/model/protocol/StaProtocol.java b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
index 5b770dd..cbe4117 100644
--- a/src/main/java/com/zy/core/model/protocol/StaProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -282,80 +282,50 @@
     }
 
 
-    public String getErrorDev$(){
-        if (errorDev.equals("-")){
-            boolean back = false;
-            String errMsg = "-";
-            if (this.isErrOther1()) {
-                if (!back){
-                    errMsg = "鐢佃矾淇濇姢鍣ㄦ柇寮�";
-                } else {
-                    errMsg = errMsg+"---"+"鐢佃矾淇濇姢鍣ㄦ柇寮�";
-                }
-                back = true;
-            }
-            if (this.isErrOther2()) {
-                if (!back){
-                    errMsg = "鍏夌數寮傚父";
-                } else {
-                    errMsg = errMsg+"---"+"鍏夌數寮傚父";
-                }
-                back = true;
-            }
-            if (this.isErrOther3()) {
-                if (!back){
-                    errMsg = "杩愯瓒呮椂";
-                } else {
-                    errMsg = errMsg+"---"+"杩愯瓒呮椂";
-                }
-                back = true;
-            }
-            if (this.isErrOther4()) {
-                if (!back){
-                    errMsg = "鍗犱綅瓒呮椂";
-                } else {
-                    errMsg = errMsg+"---"+"鍗犱綅瓒呮椂";
-                }
-                back = true;
-            }
-            if (this.isErrOther5()) {
-                if (!back){
-                    errMsg = "鏈変换鍔℃棤璐ф晠闅�";
-                } else {
-                    errMsg = errMsg+"---"+"鏈変换鍔℃棤璐ф晠闅�";
-                }
-                back = true;
-            }
-            if (this.isErrOther6()) {
-                if (!back){
-                    errMsg = "鍙橀鍣ㄦ晠闅�";
-                } else {
-                    errMsg = errMsg+"---"+"鍙橀鍣ㄦ晠闅�";
-                }
-                back = true;
-            }
-            if (this.isErrOther7()) {
-                if (!back){
-                    errMsg = "鎺ヨЕ鍣ㄦ晠闅�";
-                } else {
-                    errMsg = errMsg+"---"+"鎺ヨЕ鍣ㄦ晠闅�";
-                }
-                back = true;
-            }
-            if (this.isErrOther8()) {
-                if (!back){
-                    errMsg = "椤跺崌鐢垫満鎺ヨЕ鍣ㄦ晠闅�";
-                } else {
-                    errMsg = errMsg+"---"+"椤跺崌鐢垫満鎺ヨЕ鍣ㄦ晠闅�";
-                }
-                back = true;
-            }
-            if (back){
-                return errMsg;
-            }
-        }
 
-        return errorDev;
+    public int getErrorDev$(){
+        if (errOther1){
+            return 1;
+        }
+        if (errOther2){
+            return 2;
+        }
+        if (errOther3){
+            return 3;
+        }
+        if (errOther4){
+            return 4;
+        }
+        if (errOther5){
+            return 5;
+        }
+        if (errOther6){
+            return 6;
+        }
+        if (errOther7){
+            return 7;
+        }
+        return 0;
+    }
+
+    public java.util.List<java.util.Map<String, Object>> getExceptions() {
+        java.util.List<java.util.Map<String, Object>> list = new java.util.ArrayList<>();
+        if (errOther1) list.add(createException(0, "鐢佃矾淇濇姢鍣ㄦ柇寮�"));
+        if (errOther2) list.add(createException(1, "鍏夌數寮傚父"));
+        if (errOther3) list.add(createException(2, "杩愯瓒呮椂"));
+        if (errOther4) list.add(createException(3, "鍗犱綅瓒呮椂"));
+        if (errOther5) list.add(createException(4, "鏈変换鍔℃棤璐ф晠闅�"));
+        if (errOther6) list.add(createException(5, "鍙橀鍣ㄦ晠闅�"));
+        if (errOther7) list.add(createException(6, "鎺ヨЕ鍣ㄦ晠闅�"));
+        if (errOther8) list.add(createException(7, "椤跺崌鐢垫満鎺ヨЕ鍣ㄦ晠闅�"));
+        return list;
+    }
+
+    private java.util.Map<String, Object> createException(int code, String msg) {
+        java.util.Map<String, Object> map = new java.util.HashMap<>();
+        map.put("code", code);
+        map.put("msg", msg);
+        return map;
     }
 //    public Integer getNearbySta() {
 //        if (getNearbySta == null) return 0;

--
Gitblit v1.9.1