瀏覽代碼

更新择岗功能

sandm 2 年之前
父節點
當前提交
c8c2d1f4a1
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -1959,7 +1959,7 @@ class IndexController extends WebBaseController
         }
         //手动设置择岗时间段
         $time = time();
-        if($time > 1661247000 || $time < 1661126400){
+        if($time > 1661227200 || $time < 1661126400){
             return $this->showMessage('抱歉,未到择岗时间!', route('recruit.show',array('id',$recruit_id)), true, '上一页', '2');
         }
         $option_list = [
@@ -2133,6 +2133,10 @@ class IndexController extends WebBaseController
 
         $recruit_id = $request->input('recruit_id');
         $appoint_id = $request->input('appoint_id');
+        $time = time();
+        if($time > 1661227200 || $time < 1661126400){
+            return $this->showMessage('抱歉,未到择岗时间!', route('recruit.show',array('id',$recruit_id)), true, '上一页', '2');
+        }
         $info = RecruitAppointSelect::where('uid',$uid)->where('recruit_id',$recruit_id)->where('appoint_id',$appoint_id)->first();
         if($info->result){
             return ['status' => 0, 'msg' => "择岗数据已提交!"];