|
@@ -1441,115 +1441,14 @@ class IndexController extends WebBaseController
|
|
return $this->showMessage('抱歉,您未入闱,无需考察审核!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
return $this->showMessage('抱歉,您未入闱,无需考察审核!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
}
|
|
}
|
|
|
|
|
|
- $uids = array (
|
|
|
|
- 0 => '175624',
|
|
|
|
- 1 => '175637',
|
|
|
|
- 2 => '173543',
|
|
|
|
- 3 => '175663',
|
|
|
|
- 4 => '175628',
|
|
|
|
- 5 => '159629',
|
|
|
|
- 6 => '170066',
|
|
|
|
- 7 => '175826',
|
|
|
|
- 8 => '175629',
|
|
|
|
- 9 => '175620',
|
|
|
|
- 10 => '175738',
|
|
|
|
- 11 => '175854',
|
|
|
|
- 12 => '164974',
|
|
|
|
- 13 => '167931',
|
|
|
|
- 14 => '175757',
|
|
|
|
- 15 => '175951',
|
|
|
|
- 16 => '175893',
|
|
|
|
- 17 => '175995',
|
|
|
|
- 18 => '176024',
|
|
|
|
- 19 => '176044',
|
|
|
|
- 20 => '169828',
|
|
|
|
- 21 => '152230',
|
|
|
|
- 22 => '176147',
|
|
|
|
- 23 => '176144',
|
|
|
|
- 24 => '176189',
|
|
|
|
- 25 => '169518',
|
|
|
|
- 26 => '175925',
|
|
|
|
- 27 => '176327',
|
|
|
|
- 28 => '176347',
|
|
|
|
- 29 => '176349',
|
|
|
|
- 30 => '176407',
|
|
|
|
- 31 => '170378',
|
|
|
|
- 32 => '176463',
|
|
|
|
- 33 => '176457',
|
|
|
|
- 34 => '169219',
|
|
|
|
- 35 => '169285',
|
|
|
|
- 36 => '163039',
|
|
|
|
- 37 => '176545',
|
|
|
|
- 38 => '176551',
|
|
|
|
- 39 => '169814',
|
|
|
|
- 40 => '175847',
|
|
|
|
- 41 => '175755',
|
|
|
|
- 42 => '169240',
|
|
|
|
- 43 => '176669',
|
|
|
|
- 44 => '176605',
|
|
|
|
- 45 => '176807',
|
|
|
|
- 46 => '169917',
|
|
|
|
- 47 => '176888',
|
|
|
|
- 48 => '176578',
|
|
|
|
- 49 => '176681',
|
|
|
|
- 50 => '148287',
|
|
|
|
- 51 => '176511',
|
|
|
|
- 52 => '176946',
|
|
|
|
- 53 => '176922',
|
|
|
|
- 54 => '176955',
|
|
|
|
- 55 => '167385',
|
|
|
|
- 56 => '176971',
|
|
|
|
- 57 => '176969',
|
|
|
|
- 58 => '176984',
|
|
|
|
- 59 => '169932',
|
|
|
|
- 60 => '176250',
|
|
|
|
- 61 => '149243',
|
|
|
|
- 62 => '177026',
|
|
|
|
- 63 => '169607',
|
|
|
|
- 64 => '150162',
|
|
|
|
- 65 => '177055',
|
|
|
|
- 66 => '177061',
|
|
|
|
- 67 => '177056',
|
|
|
|
- 68 => '169761',
|
|
|
|
- 69 => '177096',
|
|
|
|
- 70 => '177118',
|
|
|
|
- 71 => '177102',
|
|
|
|
- 72 => '159073',
|
|
|
|
- 73 => '177119',
|
|
|
|
- 74 => '169641',
|
|
|
|
- 75 => '177158',
|
|
|
|
- 76 => '177128',
|
|
|
|
- 77 => '170175',
|
|
|
|
- 78 => '170822',
|
|
|
|
- 79 => '177193',
|
|
|
|
- 80 => '177234',
|
|
|
|
- 81 => '177251',
|
|
|
|
- 82 => '168964',
|
|
|
|
- 83 => '176034',
|
|
|
|
- 84 => '150532',
|
|
|
|
- 85 => '168487',
|
|
|
|
- 86 => '177304',
|
|
|
|
- 87 => '170441',
|
|
|
|
- 88 => '177262',
|
|
|
|
- 89 => '177342',
|
|
|
|
- 90 => '177356',
|
|
|
|
- 91 => '170376',
|
|
|
|
- 92 => '177316',
|
|
|
|
- 93 => '177361',
|
|
|
|
- 94 => '177170',
|
|
|
|
- 95 => '171720',
|
|
|
|
- 96 => '176736',
|
|
|
|
- );
|
|
|
|
- $limit_time = 1654078200;
|
|
|
|
- if(in_array($uid,$uids)){
|
|
|
|
- $limit_time = 1654164000;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
+ $limit_time = 1660210200;
|
|
$time = time();
|
|
$time = time();
|
|
if( $time > $limit_time){
|
|
if( $time > $limit_time){
|
|
return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
}
|
|
}
|
|
|
|
|
|
- $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->first();
|
|
|
|
|
|
+ $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->where('type','supplement')->first();
|
|
if(!$info){
|
|
if(!$info){
|
|
$info = [
|
|
$info = [
|
|
'appoint_id' => $appoint_info->id,
|
|
'appoint_id' => $appoint_info->id,
|
|
@@ -1742,12 +1641,18 @@ class IndexController extends WebBaseController
|
|
} else {
|
|
} else {
|
|
return redirect(route('login'));
|
|
return redirect(route('login'));
|
|
}
|
|
}
|
|
|
|
+ $limit_time = 1660210200;
|
|
|
|
+ $time = time();
|
|
|
|
+ if( $time > $limit_time){
|
|
|
|
+ return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',18)), true, '上一页', '3');
|
|
|
|
+ }
|
|
|
|
+
|
|
$appoint_id = $request->input('appoint_id');
|
|
$appoint_id = $request->input('appoint_id');
|
|
- $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',16)->where('id',$appoint_id)->first();
|
|
|
|
|
|
+ $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',18)->where('id',$appoint_id)->first();
|
|
if(!$appoint_info){
|
|
if(!$appoint_info){
|
|
return ['status' => 0, 'msg' => '抱歉,找不到您要补登的报名记录!'];
|
|
return ['status' => 0, 'msg' => '抱歉,找不到您要补登的报名记录!'];
|
|
}
|
|
}
|
|
- $info = RecruitSupplement::where('appoint_id',$appoint_id)->first();
|
|
|
|
|
|
+ $info = RecruitSupplement::where('appoint_id',$appoint_id)->where('type','supplement')->first();
|
|
if($info){
|
|
if($info){
|
|
if($info->status == 1){
|
|
if($info->status == 1){
|
|
return ['status' => 0, 'msg' => '材料已审核通过,不允许修改'];
|
|
return ['status' => 0, 'msg' => '材料已审核通过,不允许修改'];
|
|
@@ -1873,6 +1778,7 @@ class IndexController extends WebBaseController
|
|
}
|
|
}
|
|
$data['manage'] = json_encode($manage);
|
|
$data['manage'] = json_encode($manage);
|
|
$data['status'] = 0;
|
|
$data['status'] = 0;
|
|
|
|
+ $data['type'] = 'supplement';
|
|
$result = RecruitSupplement::create($data);
|
|
$result = RecruitSupplement::create($data);
|
|
$appoint_info->political_audit = 4;
|
|
$appoint_info->political_audit = 4;
|
|
$appoint_info->save();
|
|
$appoint_info->save();
|
|
@@ -1893,10 +1799,10 @@ class IndexController extends WebBaseController
|
|
$appoint_id = $request->input('appoint_id');
|
|
$appoint_id = $request->input('appoint_id');
|
|
$type = $request->input('type');
|
|
$type = $request->input('type');
|
|
$appoint_info = RecruitAppointInfo::where('uid',$uid)->where('id',$appoint_id)->first();
|
|
$appoint_info = RecruitAppointInfo::where('uid',$uid)->where('id',$appoint_id)->first();
|
|
- $recruit = Recruit::where('id',$appoint_info->recruit_id)->first();
|
|
|
|
if(!$appoint_info){
|
|
if(!$appoint_info){
|
|
return ['status' => 0, 'msg' => '抱歉,找不到您要登记的报名记录!'];
|
|
return ['status' => 0, 'msg' => '抱歉,找不到您要登记的报名记录!'];
|
|
}
|
|
}
|
|
|
|
+ $recruit = Recruit::where('id',$appoint_info->recruit_id)->first();
|
|
$info = RecruitSupplement::where('appoint_id',$appoint_id)->where('type',$type)->first();
|
|
$info = RecruitSupplement::where('appoint_id',$appoint_id)->where('type',$type)->first();
|
|
if($info){
|
|
if($info){
|
|
if($info->h_status == 1){
|
|
if($info->h_status == 1){
|
|
@@ -1948,8 +1854,9 @@ class IndexController extends WebBaseController
|
|
}
|
|
}
|
|
|
|
|
|
$health_result = $this->baiduService->health_code(file_get_contents(base_path() . "/public" . $health_code[0]['response']['path']));
|
|
$health_result = $this->baiduService->health_code(file_get_contents(base_path() . "/public" . $health_code[0]['response']['path']));
|
|
- $health_msg = [];
|
|
|
|
|
|
+ $health_msg = ['健康码自动审核通过'];
|
|
$h_status = 1;
|
|
$h_status = 1;
|
|
|
|
+ $appoint_info->health_audit = 1;
|
|
if(!array_key_exists('error_msg',$health_result) && !array_key_exists('error_code',$health_result)){
|
|
if(!array_key_exists('error_msg',$health_result) && !array_key_exists('error_code',$health_result)){
|
|
if(array_key_exists('姓名',$health_result)){
|
|
if(array_key_exists('姓名',$health_result)){
|
|
if(stripos($health_result['姓名'][0]['word'],'*')>0){
|
|
if(stripos($health_result['姓名'][0]['word'],'*')>0){
|
|
@@ -1957,38 +1864,29 @@ class IndexController extends WebBaseController
|
|
}
|
|
}
|
|
if($health_result['姓名'][0]['word'] != $appoint_info->realname){
|
|
if($health_result['姓名'][0]['word'] != $appoint_info->realname){
|
|
array_push($health_msg,'抱歉,请上传您本人的健康码!');
|
|
array_push($health_msg,'抱歉,请上传您本人的健康码!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
array_push($health_msg,'健康码错误,识别不到姓名!');
|
|
array_push($health_msg,'健康码错误,识别不到姓名!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
if(array_key_exists('状态',$health_result)){
|
|
if(array_key_exists('状态',$health_result)){
|
|
if($health_result['状态'][0]['word'] != '绿码'){
|
|
if($health_result['状态'][0]['word'] != '绿码'){
|
|
array_push($health_msg,'抱歉,您的健康码非绿码!');
|
|
array_push($health_msg,'抱歉,您的健康码非绿码!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
array_push($health_msg,'健康码错误,识别不到状态!');
|
|
array_push($health_msg,'健康码错误,识别不到状态!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
if(array_key_exists('更新时间',$health_result)){
|
|
if(array_key_exists('更新时间',$health_result)){
|
|
$time = strtotime($health_result['更新时间'][0]['word']);
|
|
$time = strtotime($health_result['更新时间'][0]['word']);
|
|
if($time < strtotime($recruit->pen_health_start) || $time > strtotime($recruit->pen_health_end)){
|
|
if($time < strtotime($recruit->pen_health_start) || $time > strtotime($recruit->pen_health_end)){
|
|
array_push($health_msg,'抱歉,请上传{$recruit->pen_health_start}至{$recruit->pen_health_end}之间的健康码!');
|
|
array_push($health_msg,'抱歉,请上传{$recruit->pen_health_start}至{$recruit->pen_health_end}之间的健康码!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
}else{
|
|
}else{
|
|
array_push($health_msg,'健康码错误,识别不到时间!');
|
|
array_push($health_msg,'健康码错误,识别不到时间!');
|
|
- $h_status = 0;
|
|
|
|
}
|
|
}
|
|
$data['h_status'] = $h_status;
|
|
$data['h_status'] = $h_status;
|
|
- $data['h_msg'] = $h_status == 1 ? '健康码自动审核通过' : implode(';',$health_msg);
|
|
|
|
|
|
+ $data['h_msg'] = implode(';',$health_msg);
|
|
$appoint_info->health_audit = $h_status == 1 ? 1 : 4;
|
|
$appoint_info->health_audit = $h_status == 1 ? 1 : 4;
|
|
$data['health_code'] = json_encode($health_code);
|
|
$data['health_code'] = json_encode($health_code);
|
|
- }else{
|
|
|
|
- $data['h_status'] = 0;
|
|
|
|
- $appoint_info->health_audit = $h_status == 4;
|
|
|
|
}
|
|
}
|
|
|
|
|
|
$data['health_result'] = json_encode($health_result);
|
|
$data['health_result'] = json_encode($health_result);
|
|
@@ -2025,7 +1923,7 @@ class IndexController extends WebBaseController
|
|
$trip_status = 0;
|
|
$trip_status = 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- $data['h_msg'] = implode(';',$trip_msg);
|
|
|
|
|
|
+ $data['h_msg'] .= implode(';',$trip_msg);
|
|
}
|
|
}
|
|
|
|
|
|
$data['trip_result'] = json_encode($trip_result);
|
|
$data['trip_result'] = json_encode($trip_result);
|
|
@@ -2233,6 +2131,12 @@ class IndexController extends WebBaseController
|
|
return ['status' => 1, 'msg' => "提交择岗意愿成功,请耐心等待结果!"];
|
|
return ['status' => 1, 'msg' => "提交择岗意愿成功,请耐心等待结果!"];
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function select_result(Request $request)
|
|
|
|
+ {
|
|
|
|
+ $view_data = [];
|
|
|
|
+ return view('app.recruit.select_result',$view_data);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
public function interviewer_random(Request $request)
|
|
public function interviewer_random(Request $request)
|
|
{
|
|
{
|
|
@@ -2287,4 +2191,6 @@ class IndexController extends WebBaseController
|
|
return view('app.recruit.interviewer', $return_data);
|
|
return view('app.recruit.interviewer', $return_data);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|