|
@@ -510,8 +510,9 @@ class IndexController extends WebBaseController
|
|
|
$user_info['family'] = json_decode($user_info['family']);
|
|
|
if(in_array('expand_special',$forms)){
|
|
|
$special = RecruitAppointExpandSpecial::where('recruit_appoint_id',$user_info['id'])->first();
|
|
|
+
|
|
|
if($special){
|
|
|
- if(strpos(',',$special['condition']) !== false){
|
|
|
+ if(strpos($special['condition'],',') !== false){
|
|
|
$special['condition'] = explode(',',$special['condition']);
|
|
|
}
|
|
|
$material = json_decode($special['material'],true);
|
|
@@ -823,9 +824,9 @@ class IndexController extends WebBaseController
|
|
|
return response()->json(['status' => 0,'msg' => '请选择项目!']);
|
|
|
}
|
|
|
$recruit = Recruit::find($recruit_id);
|
|
|
- if(!$recruit['status']){
|
|
|
- return response()->json(['status' => 0,'msg' => '抱歉,该项目状态不正确,请联系客服!']);
|
|
|
- }
|
|
|
+// if(!$recruit['status']){
|
|
|
+// return response()->json(['status' => 0,'msg' => '抱歉,该项目状态不正确,请联系客服!']);
|
|
|
+// }
|
|
|
if($recruit['current'] != 1 && $recruit['current'] != 2){
|
|
|
return response()->json(['status' => 0,'msg' => '抱歉,该项目报名通道已关闭,如有疑问,请联系客服!']);
|
|
|
}
|
|
@@ -1016,12 +1017,13 @@ 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' => '加分条件不能为空']);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
$data['family'] = json_encode($family);
|
|
|
+
|
|
|
if($appoint_info){
|
|
|
//如果已有报名记录,进入修改阶段的处理流程
|
|
|
DB::beginTransaction();
|
|
@@ -1214,10 +1216,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)){
|