Browse Source

完善debugClearAllFaultBySeatId

tom 2 tháng trước cách đây
mục cha
commit
5bc3e04b4d

+ 2 - 2
ruoyi-sim/src/main/java/com/ruoyi/sim/service/impl/CommSendService.java

@@ -394,7 +394,7 @@ public class CommSendService {
     }
 
     /**
-     * debug清除所有故障
+     * debug清除SeatId上模拟器所有故障
      *
      * @param seatId
      * @return
@@ -421,7 +421,7 @@ public class CommSendService {
         for (String b : getGZBWBySimType(sim.getSimType())) {
             SimMsg sm = debugClearOneFault(seatId, b);
             if (sm != null && !Objects.equals(sm.getResult(), SimMsg.Result.SUCCESS)) {
-                AjaxResult.success("清除失败!");
+                AjaxResult.error("清除失败!");
             }
             list.add(sm);
         }