Jelajahi Sumber

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

sandm 2 tahun lalu
induk
melakukan
d27b3cffc9

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

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

+ 1 - 1
app/Models/Recruit.php

@@ -291,7 +291,7 @@ class Recruit extends Model
         $value->introduction = htmlspecialchars_decode($value->introduction, ENT_QUOTES);
         $time = time();
         // 报名中
-        if (strtotime($value->apply_start) < $time && strtotime($value->apply_end) > $time) {
+        if (strtotime($value->audit_start) < $time && strtotime($value->audit_end) > $time) {
             $value->isApply = 1;
         } else {
             $value->isApply = 0;