From c81723342e84b1a566c15adee1ca5144433d4a87 Mon Sep 17 00:00:00 2001 From: hydrz Date: Thu, 7 May 2020 10:58:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E5=AF=BC=E5=87=BA=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Virtual/Http/Controllers/OrderController.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/Domains/Virtual/Http/Controllers/OrderController.php b/app/Domains/Virtual/Http/Controllers/OrderController.php index 423b860d..bdd562db 100644 --- a/app/Domains/Virtual/Http/Controllers/OrderController.php +++ b/app/Domains/Virtual/Http/Controllers/OrderController.php @@ -261,14 +261,14 @@ class OrderController extends Controller try { $total = app(OrderCardPartitionRepository::class)->withRefunded()->withConditions($conditions)->count(); - if ($total > 200000) { - throw new NotAllowedException('数据量过大,请筛选后再进行导出'); - } + // if ($total > 200000) { + // throw new NotAllowedException('数据量过大,请筛选后再进行导出'); + // } - $queue = $total > 30000; + // $queue = $total > 30000; $export = new OrderCardExport($conditions); - $url = ExportService::store($export, 'public', $queue); + $url = ExportService::store($export, 'public', false); } catch (\Exception $e) { throw $e; }