소스 검색

得润宝

cqp 1 일 전
부모
커밋
4c25e6753e
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      app/Console/Commands/U8Settle.php

+ 1 - 3
app/Console/Commands/U8Settle.php

@@ -80,9 +80,7 @@ class U8Settle extends Command
                 ->select("id","type","database","order_number")
                 ->orderBy("id","desc")
                 ->chunkById(10, function ($data) use($connections,$time,$time1){
-                    $data = Collect($data)->map(function ($object) {
-                        return (array)$object;
-                    })->toArray();
+                    $data = $data->toArray();
 
                     $id = [];
                     foreach ($data as $record) {