瀏覽代碼

Merge branch 'zzd' of ssh://was.baoshi56.com:10022/var/git/bswas

LD 5 年之前
父節點
當前提交
e65e5ae7e9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/BatchService.php

+ 1 - 1
app/Services/BatchService.php

@@ -115,7 +115,7 @@ class BatchService
     public function checkBatchOrderInfo($batches)
     {
         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();
         foreach ($batches as $batch){
             if (!$batch->orders)continue;