Browse Source

修改考查审核条件

sandm 3 years ago
parent
commit
6943d96941
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 6 - 0
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -1382,6 +1382,12 @@ class IndexController extends WebBaseController
             return $this->showMessage('抱歉,您未入闱,无需考察审核!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
             return $this->showMessage('抱歉,您未入闱,无需考察审核!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
         }
         }
 
 
+        $uids = [169358,165444,165514,164848,169596,170469,169434,169428,135137,170165,169779,151713,170238,165556,169643,169548,169842,169266,169839,169561,170248,169806,169627,168723,169850,161781,170194,169529,164947,169278,168931,160536,169787,169360,169819,149243,169468,164590,170148,170253,169056,169486,169329,169864,169449,170007,169937,170268,169727,169978,167600];
+        $time = time();
+        if(!in_array($uid,$uids) || $time > 1626436800){
+            return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+        }
+
         $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->first();
         $info = RecruitSupplement::where('appoint_id',$appoint_info->id)->first();
         if(!$info){
         if(!$info){
             $info = [
             $info = [