Przeglądaj źródła

更新招考系统报名逻辑

sandm 1 rok temu
rodzic
commit
47a869b90d

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

@@ -1016,7 +1016,7 @@ class IndexController extends WebBaseController
         $forms = explode(',', $recruit['forms']);
         if(in_array('expand_special',$forms)){
             $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' => '加分条件不能为空']);
             }
         }