Przeglądaj źródła

更新超过审核时间无法继续报名

sandm 2 lat temu
rodzic
commit
9e45477090

+ 2 - 1
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -76,7 +76,8 @@ class IndexController extends WebBaseController
         }
         $info = Recruit::parse_info($recruit);
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$id)->first();
-        if(!$info->isApply && $appoint_info){
+        $time = time();
+        if(!$info->isApply && $appoint_info && ($time >= $recruit->audit_start &&  $time <= $recruit->audit_end)){
             $first_post = RecruitAppointLog::where('type',3)->where('uid',$uid)->orderBy('created_at','asc')->first();
             if($first_post){
                 $info->isApply = 1;