1
This commit is contained in:
@@ -116,7 +116,7 @@ class MpdfDriver
|
||||
return [$css, $html];
|
||||
}
|
||||
|
||||
public function exportUsedCarPdf($field,$car,$user,$contactField,$contact)
|
||||
public function exportUsedCarPdf($field,$car,$user,$contactField,$contact,$lang)
|
||||
{
|
||||
/*$car = [
|
||||
'title' => '奥迪Q3 2013款 35 TFSI 舒适型',
|
||||
@@ -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'] . '.pdf';
|
||||
$pdfName = 'invoice-' . date('YmdHis').'-'.$car['id'] . '-' . $lang . '.pdf';
|
||||
$path = $dir . '/' . $pdfName;
|
||||
file_put_contents($path, $pdf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user