cqp hace 2 meses
padre
commit
45621868df
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      app/Jobs/ManDeviceJobLf.php

+ 3 - 2
app/Jobs/ManDeviceJobLf.php

@@ -30,6 +30,8 @@ class ManDeviceJobLf implements ShouldQueue
         $this->url = config('ip.zslf');
     }
 
+    public $device = "0140142407030000927124847284,0140142407030000927124847285,0140142407030000927124847286,0140142407030000927124847287,0140142407030000927124848151,0140142407030000916024847613,0140142407030000916024847614,0140142407030000916024847615,0140142407030000916024847616,0140142407030000916024847617,0140142407030000937124849723,0140142407030000937124849724,0140142407030000937124849725,0140142407030000937124849726,0140142407030000937124849727,0140142407030000937124849728,0140142407030000937124849729,0140142407030000937124849730,0140142407030000894824848319,0140142407030000894824848320,0140142407030000894824848321,0140142407030000894824848322,0140142407030000894824848323,0140142407030000894824848324,0140142407030000894824848325,0140142407030000894824848326";
+
     /**
      * Execute the job.
      *
@@ -40,8 +42,7 @@ class ManDeviceJobLf implements ShouldQueue
         try{
             if(empty($this->data['data'])) return;
 
-            $device = LfDevice::select('data')->get()->toArray();
-            $device = array_column($device,'data');
+            $device = explode(',',$this->device);
 
             $deviceId = $this->data['data']['deviceId'];
             $deviceName = $this->data['data']['deviceName'];