浏览代码

重新生成准考证

sandm 2 年之前
父节点
当前提交
20e95b8f7e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 1 - 1
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -1186,7 +1186,7 @@ class IndexController extends WebBaseController
                     $name = $recruit->name_en;
                     $name = $recruit->name_en;
                     $date = date("Y-m-d",strtotime($recruit->created_at));
                     $date = date("Y-m-d",strtotime($recruit->created_at));
                     $filename = $date . '_' . $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 . '.pdf';
+                    $file = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/pen/" . $filename . '_create.pdf';
                     if(file_exists($file)){
                     if(file_exists($file)){
                         header('Content-Description: File Transfer');
                         header('Content-Description: File Transfer');
                         header('Content-Type: application/octet-stream');
                         header('Content-Type: application/octet-stream');