张延森 2 年之前
父節點
當前提交
9ce6d05e8e
共有 1 個檔案被更改,包括 6 行新增2 行删除
  1. 6
    2
      src/main/java/com/yunzhi/nanyang/controller/TaMachineryController.java

+ 6
- 2
src/main/java/com/yunzhi/nanyang/controller/TaMachineryController.java 查看文件

@@ -276,8 +276,12 @@ public class TaMachineryController extends BaseController {
276 276
         DeviceSummary deviceSummary = JSONObject.parseObject(tdDevice.getApiConfig(), DeviceSummary.class);
277 277
         TdHatcDevice hatcDevice = iTdHatcDeviceService.getById(deviceSummary.getDeviceId());
278 278
 
279
-        if (hatcDevice == null || null == hatcDevice.getDeviceStatus() || hatcDevice.getDeviceStatus() != 1) {
280
-            return ResponseBean.error("车辆设备离线");
279
+//        if (hatcDevice == null || null == hatcDevice.getDeviceStatus() || hatcDevice.getDeviceStatus() != 1) {
280
+//            return ResponseBean.error("车辆设备离线");
281
+//        }
282
+
283
+        if (hatcDevice == null) {
284
+            return ResponseBean.error("未同步设备");
281 285
         }
282 286
 
283 287
         String url = String.format("%s/preview?terminalID=%s&productKey=%s&channelNo=%d&netType=%d",