소스 검색

更新!

TRX 1 년 전
부모
커밋
8f1302f929
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/device/DevicePingInfoService.java

+ 2 - 2
OneCardIotServer/src/main/java/com/zhongshu/iot/server/core/service/device/DevicePingInfoService.java

@@ -133,8 +133,8 @@ public class DevicePingInfoService extends SuperService {
                 updateDeviceOnLine(gateWayInfo.getGateWayId(), gateWayInfo.getGateWayName(), OnLineDeviceType.GateWay);
             }
         } else {
-            pingResult.setFailed("");
-            return ResultContent.buildFail("ping设备不存在");
+            pingResult.setFailed("ping设备不存在");
+            return ResultContent.buildSuccess(pingResult);
         }
         pingResult.setSuccess();
         pingResult.setTime(System.currentTimeMillis());