|
@@ -274,7 +274,7 @@ class RecruitController extends Controller
|
|
])->default(1)->help('允许提交审核的次数,直接输入数字即可');
|
|
])->default(1)->help('允许提交审核的次数,直接输入数字即可');
|
|
$form->datetimeRange('supplement_start', 'supplement_end', '材料补登时间');
|
|
$form->datetimeRange('supplement_start', 'supplement_end', '材料补登时间');
|
|
$form->radio('pay_switch', '缴费报名')->options([0 => '否', 1 => '是'])->default(0);
|
|
$form->radio('pay_switch', '缴费报名')->options([0 => '否', 1 => '是'])->default(0);
|
|
- $form->radio('special_condition_type', '加分条件样式')->options([0 => '手输', 1 => '整场下拉选择',2 => '岗位适配'])->default(0);
|
|
|
|
|
|
+ $form->radio('special_condition_type', '加分条件样式')->options([0 => '手输', 1 => '整场下拉选择',2 => '岗位适配(单选)',3 => '岗位适配(多选)'])->default(0);
|
|
$form->text('special_condition_value', '加分条件值')->default("")->help('如选择岗位适合,此放放空,选择整场下拉选择项请用英文,隔开');
|
|
$form->text('special_condition_value', '加分条件值')->default("")->help('如选择岗位适合,此放放空,选择整场下拉选择项请用英文,隔开');
|
|
})->tab('笔试', function ($form) {
|
|
})->tab('笔试', function ($form) {
|
|
$form->switch('pen_comfirm', '笔试确认')->help("打开后将会在设置时间段内开启笔试确认功能,有且仅当确认了才能打印准考证参加笔试")->default(0)->setMustMark();
|
|
$form->switch('pen_comfirm', '笔试确认')->help("打开后将会在设置时间段内开启笔试确认功能,有且仅当确认了才能打印准考证参加笔试")->default(0)->setMustMark();
|
|
@@ -2126,6 +2126,7 @@ class RecruitController extends Controller
|
|
->orderBy('recruit_appoint_info.updated_at','desc')
|
|
->orderBy('recruit_appoint_info.updated_at','desc')
|
|
->get();
|
|
->get();
|
|
|
|
|
|
|
|
+
|
|
if(!is_dir(base_path() . "/storage/app/public/recruit/zip")){
|
|
if(!is_dir(base_path() . "/storage/app/public/recruit/zip")){
|
|
Storage::makeDirectory("public/recruit/zip");
|
|
Storage::makeDirectory("public/recruit/zip");
|
|
}
|
|
}
|
|
@@ -2145,7 +2146,11 @@ class RecruitController extends Controller
|
|
$material = json_decode($special['material'],true);
|
|
$material = json_decode($special['material'],true);
|
|
if($material){
|
|
if($material){
|
|
foreach ($material as $k => $v){
|
|
foreach ($material as $k => $v){
|
|
- $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
|
|
+ if(array_key_exists('response',$v) && array_key_exists('path',$v['response'])){
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }else{
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }
|
|
if (file_exists($old_path)) {
|
|
if (file_exists($old_path)) {
|
|
$basename = basename($old_path);
|
|
$basename = basename($old_path);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
@@ -2158,7 +2163,11 @@ class RecruitController extends Controller
|
|
$identification = json_decode($value->identification,true);
|
|
$identification = json_decode($value->identification,true);
|
|
if($identification){
|
|
if($identification){
|
|
foreach ($identification as $k => $v){
|
|
foreach ($identification as $k => $v){
|
|
- $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
|
|
+ if(array_key_exists('response',$v) && array_key_exists('path',$v['response'])){
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }else{
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }
|
|
if (file_exists($old_path)) {
|
|
if (file_exists($old_path)) {
|
|
$basename = basename($old_path);
|
|
$basename = basename($old_path);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
@@ -2171,7 +2180,11 @@ class RecruitController extends Controller
|
|
$education_certification = json_decode($value->education_certification,true);
|
|
$education_certification = json_decode($value->education_certification,true);
|
|
if($education_certification){
|
|
if($education_certification){
|
|
foreach ($education_certification as $k => $v){
|
|
foreach ($education_certification as $k => $v){
|
|
- $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
|
|
+ if(array_key_exists('response',$v) && array_key_exists('path',$v['response'])){
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }else{
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }
|
|
if (file_exists($old_path)) {
|
|
if (file_exists($old_path)) {
|
|
$basename = basename($old_path);
|
|
$basename = basename($old_path);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
@@ -2184,7 +2197,11 @@ class RecruitController extends Controller
|
|
$other_certification = json_decode($value->other_certification,true);
|
|
$other_certification = json_decode($value->other_certification,true);
|
|
if($other_certification){
|
|
if($other_certification){
|
|
foreach ($other_certification as $k => $v){
|
|
foreach ($other_certification as $k => $v){
|
|
- $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
|
|
+ if(array_key_exists('response',$v) && array_key_exists('path',$v['response'])){
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }else{
|
|
|
|
+ $old_path = base_path() . "/public/" . $v['url'];
|
|
|
|
+ }
|
|
if (file_exists($old_path)) {
|
|
if (file_exists($old_path)) {
|
|
$basename = basename($old_path);
|
|
$basename = basename($old_path);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|
|
$new_path = $path . $basename; //iconv("UTF-8", "GBK", $p->picture_name);
|