浏览代码

更新招考系统报名逻辑

sandm 1 年之前
父节点
当前提交
47a869b90d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -1016,7 +1016,7 @@ class IndexController extends WebBaseController
         $forms = explode(',', $recruit['forms']);
         $forms = explode(',', $recruit['forms']);
         if(in_array('expand_special',$forms)){
         if(in_array('expand_special',$forms)){
             $special = $request->input('special');
             $special = $request->input('special');
-            if($special['point_apply'] && $special['condition'] == ''){
+            if($special['point_apply'] && ($special['condition'] == '' || count($special['condition']) == 0)){
                 return response()->json(['status' => 0,'msg' => '加分条件不能为空']);
                 return response()->json(['status' => 0,'msg' => '加分条件不能为空']);
             }
             }
         }
         }