Browse Source

朗峰数据设备

cqp 11 tháng trước cách đây
mục cha
commit
bd9029162b
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/Jobs/ManDeviceJobLf.php

+ 2 - 0
app/Jobs/ManDeviceJobLf.php

@@ -54,6 +54,8 @@ class ManDeviceJobLf implements ShouldQueue
 
                     if(! in_array($dev_eui,$device)) continue;
 
+                    if(empty($value['value'])) continue;
+
                     //发送给朗峰
                     $this->sendToDevice(['dev_eui' => $dev_eui, 'value' => $value['value']]);