From d4a9b0445d06a123e351cfa25925ecae767838c6 Mon Sep 17 00:00:00 2001 From: zcstatham <578322713@qq.com> Date: Mon, 29 Aug 2022 23:01:30 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Task.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/controller/Task.php b/app/controller/Task.php index 3bba496..da2fe55 100644 --- a/app/controller/Task.php +++ b/app/controller/Task.php @@ -590,7 +590,10 @@ class Task extends BaseController private function downloadName(JobsT $job_info){ $job_params = json_decode($job_info->payload,true)['data']['params']; list(,$ext) = explode('.', $job_info->remark); - $downloadName = $job_params['export_date1'] . '-' . $job_params['export_date2']; + if (empty($job_params['export_date1'])) + $downloadName = date('Y-m-d'); + else + $downloadName = $job_params['export_date1'] . '-' . $job_params['export_date2']; if($job_info->queue != 'default'){ $downloadName = $job_info->queue; }else if($job_params['export_type'] == 'repeat' && $job_params['export_table'] == 'repeat_frame_t'){