gogs 12 uur geleden
bovenliggende
commit
ae778acade
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 1 1
      app/Jobs/ManDeviceJobHc.php
  2. 1 1
      app/Jobs/ManDeviceJobLf.php

+ 1 - 1
app/Jobs/ManDeviceJobHc.php

@@ -44,7 +44,7 @@ class ManDeviceJobHc implements ShouldQueue
                 // 1. 整理数据并推入 Redis 列表
                 $records = [];
                 foreach ($dataPoints as $value) {
-                    if (empty($value['value'])) continue;
+//                    if (empty($value['value'])) continue;
 
                     $records[] = json_encode([
                         'machine_code' => $deviceId . $value['dataPointId'],

+ 1 - 1
app/Jobs/ManDeviceJobLf.php

@@ -49,7 +49,7 @@ class ManDeviceJobLf implements ShouldQueue
                 // 1. 整理数据并推入 Redis 列表
                 $records = [];
                 foreach ($dataPoints as $value) {
-                    if (empty($value['value'])) continue;
+//                    if (empty($value['value'])) continue;
 
                     $records[] = json_encode([
                         'machine_code' => $deviceId . $value['dataPointId'],