Pārlūkot izejas kodu

有人云设备

cqpCow 1 gadu atpakaļ
vecāks
revīzija
c66c6b3199
1 mainītis faili ar 5 papildinājumiem un 4 dzēšanām
  1. 5 4
      app/Jobs/DesktopDeviceJob.php

+ 5 - 4
app/Jobs/DesktopDeviceJob.php

@@ -49,7 +49,7 @@ class DesktopDeviceJob implements ShouldQueue
 
                 $dispatchList = $this->getDispatchList($order_num);
                 if(empty($dispatchList) || empty($dispatchList['content'])) return;
-                $this->completionOrders($dispatchList);
+                $this->completionOrders($dispatchList,$first);
 
                 file_put_contents('send_record.txt',date('Y-m-d H:i:s').$order_num . PHP_EOL,8);
             }
@@ -107,7 +107,7 @@ class DesktopDeviceJob implements ShouldQueue
         return json_decode($response,true);
     }
 
-    public function completionOrders($data){
+    public function completionOrders($data,$tag){
         list($status,$token) = ClearDataService::getToken();
         if(! $status) return;
 
@@ -178,14 +178,15 @@ class DesktopDeviceJob implements ShouldQueue
             "process_id_show" => $first['process_id_show'],
             "team_id_show" => $first['team_id_show'],
             "equipment_id_show" => $first['equipment_id_show'],
-            "employee_id_show" => $first['employee_id_show']
+            "employee_id_show" => $first['employee_id_show'],
+            "tag" => $tag
         ];
         $post = [
             "bizTypeEk" => "LOWCODE",
             "bizId" => -1,
             "data" => [
                 "completion_orders_dtl" => $completion_orders_dtl,
-                "completion_orders" => $completion_orders
+                "completion_orders" => $completion_orders,
             ],
             "dynamicFormId" => "474201923419320320",
             "showModelId" => "474382714828959744"