去除导出限制

This commit is contained in:
hydrz 2020-05-07 10:58:31 +08:00
parent 7a6d9a3e03
commit c81723342e

View File

@ -261,14 +261,14 @@ class OrderController extends Controller
try { try {
$total = app(OrderCardPartitionRepository::class)->withRefunded()->withConditions($conditions)->count(); $total = app(OrderCardPartitionRepository::class)->withRefunded()->withConditions($conditions)->count();
if ($total > 200000) { // if ($total > 200000) {
throw new NotAllowedException('数据量过大,请筛选后再进行导出'); // throw new NotAllowedException('数据量过大,请筛选后再进行导出');
} // }
$queue = $total > 30000; // $queue = $total > 30000;
$export = new OrderCardExport($conditions); $export = new OrderCardExport($conditions);
$url = ExportService::store($export, 'public', $queue); $url = ExportService::store($export, 'public', false);
} catch (\Exception $e) { } catch (\Exception $e) {
throw $e; throw $e;
} }