Преглед изворни кода

更新村务登记信息功能

sandm пре 2 година
родитељ
комит
c5b81233f0
1 измењених фајлова са 14 додато и 7 уклоњено
  1. 14 7
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 14 - 7
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -665,6 +665,15 @@ class IndexController extends WebBaseController
         if($recruit['current'] != 1){
             return response()->json(['status' => 0,'msg' => '抱歉,该项目报名通道已关闭,如有疑问,请联系客服!']);
         }
+
+        $card = $request->input('card');
+
+        $appointinfo_exist = RecruitAppointInfo::where('card',$card)->where('uid','<>',$uid)->where('recruit_id',$recruit_id)->first();
+
+        if($appointinfo_exist){
+            return response()->json(['status' => 0,'msg' => '您的证件已有其他账号的报名记录,请检查!']);
+        }
+
         $time = time();
         $appoint_info = RecruitAppointInfo::where('uid',$uid)->where('recruit_id',$recruit_id)->first();
         if(($time < strtotime($recruit['apply_start']) || strtotime($recruit['apply_end']) < $time)){//过了招考时间
@@ -680,8 +689,6 @@ class IndexController extends WebBaseController
             }
         }
 
-
-
         //基础信息的检查
         $rules = [
             'realname' => 'required',
@@ -2478,11 +2485,11 @@ class IndexController extends WebBaseController
             return $this->showMessage('您无需登记信息!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
         }
 
-        $limit_time = 1661961599;
-        $time = time();
-        if( $time > $limit_time){
-            return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
-        }
+//        $limit_time = 1661961599;
+//        $time = time();
+//        if( $time > $limit_time){
+//            return $this->showMessage('抱歉,考察审核端口已关闭!', route('recruit.show',array('id',$recruit['id'])), true, '上一页', '3');
+//        }
 
         $view_data = [];