优化pdf
This commit is contained in:
@@ -157,7 +157,7 @@ class UsedCarController extends BaseController
|
||||
'crawl_series_id' => $info['series_id'],
|
||||
'crawl_series' => $info['series_name'],
|
||||
'used_car_id' => $info['used_car_id'],
|
||||
'crawl_year' => $info['crawl_year'],
|
||||
'crawl_year' => $info['year'],
|
||||
'plate_time' => $info['plate_time'],
|
||||
];
|
||||
|
||||
@@ -229,7 +229,7 @@ class UsedCarController extends BaseController
|
||||
|
||||
$field = $this->field($lang);//字段相关外文
|
||||
$field['currency'] = $this->currency[$currency];
|
||||
$data['product_name'] = $data['crawl_brand'].' '.$data['crawl_series'].' '.$data['crawl_title'];
|
||||
$data['product_name'] = $data['crawl_brand'].' '.$data['crawl_series'].' '. $data['crawl_year'] .'款 '.$data['crawl_title'];
|
||||
$data = $this->fanyi($data, $lang);//车辆字段翻译外文
|
||||
$contactField = $this->contact($lang); //名片相关外文
|
||||
$data['trade'] = $trade;
|
||||
@@ -261,7 +261,7 @@ class UsedCarController extends BaseController
|
||||
|
||||
return response()->download(
|
||||
$filePath,
|
||||
$raw['product_name'].'-'.$raw['id'].'.pdf' // 下载时显示的文件名
|
||||
$raw['product_name']. '-' .$raw['code'].'-'.$raw['id'].'.pdf' // 下载时显示的文件名
|
||||
);
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ class UsedCarController extends BaseController
|
||||
|
||||
return $this->success([
|
||||
'pdf_url' => $url,
|
||||
'file_name' => $raw['product_name'] . '-' . $raw['id'] . '.pdf'
|
||||
'file_name' => $raw['product_name']. '-' .$raw['code']. '-' . $raw['id'] . '.pdf'
|
||||
]);
|
||||
} catch (\Throwable $e) {
|
||||
return $this->error($e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user