Browse Source

修改同步富勒包裹信息 同 was找不到包裹问题

ajun 4 năm trước cách đây
mục cha
commit
b1c0c20318
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/Http/Controllers/TestController.php

+ 1 - 0
app/Http/Controllers/TestController.php

@@ -373,6 +373,7 @@ sql;
         foreach ($orderPackingSummary_chunk as $orderPackingSummarys) {
             foreach ($orderPackingSummarys as $orderPackingSummary) {
                 $orderPackage = OrderPackage::query()->where('logistic_number',$orderPackingSummary->traceid)->first();
+                if (!$orderPackage)continue;
                 $orderPackage->update([
                     'uploaded_to_wms'=> true,
                     'weight'=>$orderPackingSummary->grossweight,