Browse Source

PDD修改任务编号

ajun 4 năm trước cách đây
mục cha
commit
5fe3dbace5
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/Services/PDDDeliveryService.php

+ 2 - 1
app/Services/PDDDeliveryService.php

@@ -7,6 +7,7 @@ use App\Services\Interfaces\DeliveryInterface;
 use App\Traits\DeliveryProcess;
 use Illuminate\Database\Query\Builder;
 use Illuminate\Support\Facades\File;
+use Illuminate\Support\Str;
 
 class PDDDeliveryService implements DeliveryInterface
 {
@@ -22,7 +23,7 @@ class PDDDeliveryService implements DeliveryInterface
             return [
                 // TODO 需要动态获取面单获取的组件 TYPE
                 'type' => 'PDD',
-                'task_id' => $item['trackingno'],
+                'task_id' => Str::uuid(),
                 'is_process' => false,
                 'data' => $item['userdefine1'],
                 'component_type' => 'PDD',