|
@@ -310,23 +310,26 @@ class IndexController extends WebBaseController
|
|
|
$appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$id)->first();
|
|
|
$time = time();
|
|
|
$formDisabled = 0;
|
|
|
- if(($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time) && ($uid != 161027 || $uid != 59041)){
|
|
|
- if(!$appoint_info){
|
|
|
- return $this->showMessage('抱歉,该项目已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
- }
|
|
|
- if($appoint_info){
|
|
|
-
|
|
|
- $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->where('appoint_id',$appoint_info->id)->orderBy('created_at','asc')->first();
|
|
|
- if(!$first_post){
|
|
|
+ if(($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time)){
|
|
|
+ if(!in_array($uid,[161027,59041])){
|
|
|
+ if(!$appoint_info){
|
|
|
return $this->showMessage('抱歉,该项目已过报名时间或尚未开始!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
|
|
|
}
|
|
|
+ if($appoint_info){
|
|
|
+
|
|
|
+ $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');
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
$view_data['module'] = $forms = explode(',', $recruit['forms']);
|