优化pdf

This commit is contained in:
2026-01-19 10:23:31 +08:00
parent fcea0627e7
commit 4e3bbb2774
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ class MpdfDriver
$pdf = $mpdf->Output('车辆详情.pdf', 'S');
$dir = runtime_path('pdf');
if (!is_dir($dir)) mkdir($dir, 0777, true);
$pdfName = 'invoice-' . date('YmdHis').'-'.$car['id'] . '-' . $lang . '.pdf';
$pdfName = 'invoice-' . $car['code'].'-'.$car['id'] . '-' . $lang . '.pdf';
$path = $dir . '/' . $pdfName;
file_put_contents($path, $pdf);