Browse Source

更新准考证功能

zmw 3 weeks ago
parent
commit
7d2660cc43
1 changed files with 12 additions and 12 deletions
  1. 12 12
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -1722,10 +1722,10 @@ class IndexController extends WebBaseController
                     $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];
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
-                    return view('app.recruit.recruit_ticket', [
-                        'title'       => "{$filename}.docx",
-                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/pen/{$filename}.docx",
-                    ]);
+//                    return view('app.recruit.recruit_ticket', [
+//                        'title'       => "{$filename}.docx",
+//                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/pen/{$filename}.docx",
+//                    ]);
                     $file     = base_path() . "/storage/recruit/ticket/pdf/{$date}/{$name}/pen/" . $filename . '.pdf';
                     $file     = base_path() . "/storage/recruit/ticket/pdf/{$date}/{$name}/pen/" . $filename . '.pdf';
 
 
                     if (file_exists($file)) {
                     if (file_exists($file)) {
@@ -1786,10 +1786,10 @@ class IndexController extends WebBaseController
                     $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];
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
-                    return view('app.recruit.recruit_ticket', [
-                        'title'       => "{$filename}.docx",
-                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/computer/{$filename}.docx",
-                    ]);
+//                    return view('app.recruit.recruit_ticket', [
+//                        'title'       => "{$filename}.docx",
+//                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/computer/{$filename}.docx",
+//                    ]);
                     $file     = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/computer/" . $filename . '.pdf';
                     $file     = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/computer/" . $filename . '.pdf';
                     if (file_exists($file)) {
                     if (file_exists($file)) {
                         header('Content-Description: File Transfer');
                         header('Content-Description: File Transfer');
@@ -1848,10 +1848,10 @@ class IndexController extends WebBaseController
                     $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];
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
                     $filename = sha1($date . '_' . $appoint_info->realname . '_' . $appoint_info->card . '_' . $post_data[$appoint_info->post_id]);
-                    return view('app.recruit.recruit_ticket', [
-                        'title'       => "{$filename}.docx",
-                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/face/{$filename}.docx",
-                    ]);
+//                    return view('app.recruit.recruit_ticket', [
+//                        'title'       => "{$filename}.docx",
+//                        'url' => "https://www.jucai.gov.cn/storage/recruit/ticket/word/{$date}/{$name}/face/{$filename}.docx",
+//                    ]);
                     $file     = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/face/" . $filename . '.pdf';
                     $file     = base_path() . "/storage/app/public/recruit/ticket/pdf/{$date}/{$name}/face/" . $filename . '.pdf';
                     if (file_exists($file)) {
                     if (file_exists($file)) {
                         header('Content-Description: File Transfer');
                         header('Content-Description: File Transfer');