|
@@ -1026,7 +1026,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("Y-m-17",time()) . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id];
|
|
|
+ $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}/pen/" . $filename . '_create.pdf';
|
|
|
if(file_exists($file)){
|
|
|
header('Content-Description: File Transfer');
|