소스 검색

BUG修复

Zhouzhendong 5 년 전
부모
커밋
dec539dfd7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Services/BatchService.php

+ 1 - 1
app/Services/BatchService.php

@@ -106,7 +106,7 @@ class BatchService
     public function checkBatchOrderInfo($batches)
     public function checkBatchOrderInfo($batches)
     {
     {
         if (!is_array($batches))$batches = $batches->toArray();
         if (!is_array($batches))$batches = $batches->toArray();
-        $ids = array_column($batches->toArray(),"id");
+        $ids = array_column($batches,"id");
         $batches = Batch::query()->whereIn("id",$ids)->with("orders.orderCommodities")->get();
         $batches = Batch::query()->whereIn("id",$ids)->with("orders.orderCommodities")->get();
         foreach ($batches as $batch){
         foreach ($batches as $batch){
             if (!$batch->orders)continue;
             if (!$batch->orders)continue;