Pārlūkot izejas kodu

下载文件名字优化

wufeng 2 gadi atpakaļ
vecāks
revīzija
befe70ebc1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/command/NowReportHandle.php

+ 1 - 1
app/command/NowReportHandle.php

@@ -55,7 +55,7 @@ class NowReportHandle extends Command
                         throw new Exception('暂不支持这个报表');
                 }
 
-                $file = excelSaveFile($res, $info['name'] . date('YmdHis'));
+                $file = excelSaveFile($res, $info['name'] . $info['start'] . '到' . $info['end']);
 
                 Db::name('exec')
                     ->where(['id' => $info['id'], 'status' => 1])//status==1 待处理