浏览代码

更新没有加分材料的报错

sandm 1 年之前
父节点
当前提交
caa51390f4
共有 1 个文件被更改,包括 3 次插入0 次删除
  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){