Forráskód Böngészése

更新招考系统报名逻辑

sandm 1 éve
szülő
commit
df2e88b630
1 módosított fájl, 7 hozzáadás és 2 törlés
  1. 7 2
      app/Http/Controllers/Web/Recruit/IndexController.php

+ 7 - 2
app/Http/Controllers/Web/Recruit/IndexController.php

@@ -1022,6 +1022,7 @@ class IndexController extends WebBaseController
         }
 
         $data['family'] = json_encode($family);
+
         if($appoint_info){
             //如果已有报名记录,进入修改阶段的处理流程
             DB::beginTransaction();
@@ -1214,10 +1215,14 @@ class IndexController extends WebBaseController
                                 }
                             }
                         }
+                        if(is_array($special['condition'])){
+                            $special['condition'] = implode(',',$special['condition']);
+                        }
                         $special['material'] = json_encode($special['material']);
+
+                        $special['recruit_appoint_id'] = $appoint_info->id;
+                        RecruitAppointExpandSpecial::create($special);
                     }
-                    $special['recruit_appoint_id'] = $result->id;
-                    RecruitAppointExpandSpecial::create($special);
                 }
                 //如果有详情模块
                 if(in_array('detail',$forms)  || in_array('internship',$forms)){