Browse Source

更新!

TRX 1 year ago
parent
commit
8f1302f929

+ 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());