|
@@ -2437,6 +2437,42 @@ class IndexController extends WebBaseController
|
|
|
return view('app.recruit.interviewer', $return_data);
|
|
|
}
|
|
|
|
|
|
+ public function supplement_info(Request $request)
|
|
|
+ {
|
|
|
+ $user = $this->getUser();
|
|
|
+ if (!empty($user)) {
|
|
|
+ $uid = $user->id;
|
|
|
+ } else {
|
|
|
+ return redirect(route('login'));
|
|
|
+ }
|
|
|
+
|
|
|
+ //招考id
|
|
|
+ $id = $request->input('id', 0);
|
|
|
+ if (!$id) {
|
|
|
+ return $this->showMessage('请选择报名项目!', route('home'), true, '上一页', '3');
|
|
|
+ }
|
|
|
+ $recruit = Recruit::find($id);
|
|
|
+ if(!$recruit['status']){
|
|
|
+ return $this->showMessage('抱歉,该项目状态不正确,请联系客服!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
+ }
|
|
|
+
|
|
|
+ $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$id)->first();
|
|
|
+ if(!$appoint_info){
|
|
|
+ return $this->showMessage('抱歉,您没有报名,无需补充信息!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
+ }
|
|
|
+ if($appoint_info->pen_audit != 1){
|
|
|
+ return $this->showMessage('抱歉,您未入闱,无需考察审核!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ $limit_time = 1660901400;
|
|
|
+ $time = time();
|
|
|
+ if( $time > $limit_time){
|
|
|
+ return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
+ }
|
|
|
+
|
|
|
+ $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->where('type','supplement')->first();
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|