|
@@ -1682,15 +1682,15 @@ class RecruitController extends Controller
|
|
|
|
|
|
$filename = $appoint->realname . '_' . $appoint->card.'_' . $post_data->code . $post_data->name;
|
|
|
|
|
|
- if(!is_dir(base_path() . "/storage/app/public/recruit/word/" . $recruit->name_en)){
|
|
|
- Storage::makeDirectory("public/recruit/word/{$recruit->name_en}");
|
|
|
+ if(!is_dir(base_path() . "/storage/app/public/recruit/word/" . $recruit->name_en . '/' .$appoint->audit)){
|
|
|
+ Storage::makeDirectory("public/recruit/word/{$recruit->name_en}. '/' .$appoint->audit");
|
|
|
}
|
|
|
|
|
|
$word_url = "/{$filename}.docx";
|
|
|
- $appoint->word_url = "/storage/recruit/word/" . $recruit->name_en .$word_url;
|
|
|
+ $appoint->word_url = "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
|
|
|
$appoint->save();
|
|
|
- $templateProcessor->saveAs(base_path() . "/storage/app/public/recruit/word/" . $recruit->name_en . $word_url);//另存为
|
|
|
- return "/storage/recruit/word/" . $recruit->name_en .$word_url;
|
|
|
+ $templateProcessor->saveAs(base_path() . "/storage/app/public/recruit/word/" . $recruit->name_en . '/' .$appoint->audit . $word_url);//另存为
|
|
|
+ return "/storage/recruit/word/" . $recruit->name_en . '/' .$appoint->audit .$word_url;
|
|
|
}
|
|
|
}
|
|
|
|