Browse Source

更新没有加分材料的报错

sandm 1 năm trước cách đây
mục cha
commit
caa51390f4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      app/Http/Controllers/Web/Recruit/IndexController.php

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

@@ -1031,6 +1031,9 @@ class IndexController extends WebBaseController
                     if(in_array('expand_special',$forms)){
                         $special = $request->input('special');
                         if($special['point_apply']){
+                            if(!array_key_exists('material',$special)){
+                                return response()->json(['status' => 0,'msg' => '加分佐证材料不能为空!']);
+                            }
                             //删除掉没有成功返回路径的图片
                             if(is_array($special['material'])){
                                 foreach ($special['material'] as $k => $v){