重复数据导出调试

master
zcstatham 2 years ago
parent 4b15f84d71
commit d4a9b0445d
  1. 3
      app/controller/Task.php

@ -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;

Loading…
Cancel
Save