|
@@ -1337,7 +1337,7 @@ class IndexController extends WebBaseController
|
|
|
$post_data = RecruitPost::where('recruit_id',$recruit_id)->where('status',1)->selectRaw('id, CONCAT(code," ",name) as post')->pluck('post', 'id');
|
|
|
$name = $recruit->name_en;
|
|
|
$date = date("Y-m-d",strtotime($recruit->created_at));
|
|
|
- $filename = $date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id].'_create';
|
|
|
+ $filename = $date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id];
|
|
|
$file = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/face/" . $filename . '.pdf';
|
|
|
if(file_exists($file)){
|
|
|
header('Content-Description: File Transfer');
|