|
|
@ -590,6 +590,9 @@ class Task extends BaseController |
|
|
|
private function downloadName(JobsT $job_info){ |
|
|
|
private function downloadName(JobsT $job_info){ |
|
|
|
$job_params = json_decode($job_info->payload,true)['data']['params']; |
|
|
|
$job_params = json_decode($job_info->payload,true)['data']['params']; |
|
|
|
list(,$ext) = explode('.', $job_info->remark); |
|
|
|
list(,$ext) = explode('.', $job_info->remark); |
|
|
|
|
|
|
|
if (empty($job_params['export_date1'])) |
|
|
|
|
|
|
|
$downloadName = date('Y-m-d'); |
|
|
|
|
|
|
|
else |
|
|
|
$downloadName = $job_params['export_date1'] . '-' . $job_params['export_date2']; |
|
|
|
$downloadName = $job_params['export_date1'] . '-' . $job_params['export_date2']; |
|
|
|
if($job_info->queue != 'default'){ |
|
|
|
if($job_info->queue != 'default'){ |
|
|
|
$downloadName = $job_info->queue; |
|
|
|
$downloadName = $job_info->queue; |
|
|
|