Răsfoiți Sursa

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

sandm 2 ani în urmă
părinte
comite
9e45477090
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 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;