|
@@ -199,16 +199,16 @@ class IndexController extends WebBaseController
|
|
|
}
|
|
|
if($appoint_info){
|
|
|
|
|
|
- $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->orderBy('created_at','asc')->first();
|
|
|
+ $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('appoint_id',$appoint_info->id)->orderBy('created_at','asc')->first();
|
|
|
if(!$first_post){
|
|
|
return $this->showMessage('抱歉,该招考已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
}
|
|
|
- $has_late_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('created_at','>',$recruit['apply_end'])->first();
|
|
|
- if($has_late_post){
|
|
|
- $formDisabled = 1;
|
|
|
- }else{
|
|
|
- $formDisabled = 0;
|
|
|
- }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|