|
@@ -470,6 +470,19 @@ class IndexController extends WebBaseController
|
|
|
}
|
|
|
$user_info['shixin'] = $shixin;
|
|
|
|
|
|
+ if(json_decode($user_info['baokaoshengming'])){
|
|
|
+ $baokaoshengming = json_decode($user_info['baokaoshengming'],true);
|
|
|
+ foreach ($baokaoshengming as $k => $v){
|
|
|
+ if(array_key_exists('response',$v)){
|
|
|
+ $baokaoshengming[$k]['url'] = $v['response']['path'];
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $baokaoshengming = [];
|
|
|
+ }
|
|
|
+ $user_info['baokaoshengming'] = $baokaoshengming;
|
|
|
+
|
|
|
//获取最新的报名审核信息
|
|
|
$logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
|
|
|
if($logs){
|
|
@@ -611,6 +624,24 @@ class IndexController extends WebBaseController
|
|
|
$user_info['shixin'] = $shixin;
|
|
|
}
|
|
|
|
|
|
+ //如果有声明书模块
|
|
|
+ if(in_array('baokaoshengming',$forms)){
|
|
|
+ if(json_decode($user_info['baokaoshengming'])){
|
|
|
+ $baokaoshengming = json_decode($user_info['baokaoshengming'],true);
|
|
|
+ foreach ($baokaoshengming as $k => $v){
|
|
|
+ if(array_key_exists('response',$v)){
|
|
|
+ if(array_key_exists('path',$v['response'])){
|
|
|
+ $baokaoshengming[$k]['url'] = $v['response']['path'];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ $baokaoshengming = [];
|
|
|
+ }
|
|
|
+ $user_info['baokaoshengming'] = $baokaoshengming;
|
|
|
+ }
|
|
|
+
|
|
|
//获取最新的报名审核信息
|
|
|
$logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
|
|
|
if($logs){
|
|
@@ -670,6 +701,7 @@ class IndexController extends WebBaseController
|
|
|
'education_certification' => [],
|
|
|
'other_certification' => [],
|
|
|
'chengnuoshu' => [],
|
|
|
+ 'baokaoshengming' => [],
|
|
|
'shixin' => []
|
|
|
]);
|
|
|
}else{
|
|
@@ -711,6 +743,9 @@ class IndexController extends WebBaseController
|
|
|
if(in_array('shixin',$forms)){
|
|
|
$user_info['shixin'] = [];
|
|
|
}
|
|
|
+ if(in_array('baokaoshengming',$forms)){
|
|
|
+ $user_info['baokaoshengming'] = [];
|
|
|
+ }
|
|
|
$user_info['recruit_id'] = $id;
|
|
|
$user_info['operation'] = 1;
|
|
|
}
|
|
@@ -1088,6 +1123,24 @@ class IndexController extends WebBaseController
|
|
|
$appoint_info->save();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //如果有声明书模块
|
|
|
+ if(in_array('baokaoshengming',$forms)){
|
|
|
+ $baokaoshengming = $request->input('baokaoshengming');
|
|
|
+ if(is_array($baokaoshengming)){
|
|
|
+ //删除掉没有成功返回路径的图片
|
|
|
+ foreach ($baokaoshengming as $k => $v){
|
|
|
+ if(!array_key_exists('response',$v)){
|
|
|
+ unset($baokaoshengming[$k]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ if($baokaoshengming){
|
|
|
+ $appoint_info->baokaoshengming = json_encode($baokaoshengming);
|
|
|
+ $appoint_info->save();
|
|
|
+ }
|
|
|
+ }
|
|
|
DB::commit();
|
|
|
if($operation == 2){
|
|
|
$log = [
|
|
@@ -1229,6 +1282,24 @@ class IndexController extends WebBaseController
|
|
|
$result->save();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ //如果有声明书模块
|
|
|
+ if(in_array('baokaoshengming',$forms)){
|
|
|
+ $baokaoshengming = $request->input('baokaoshengming');
|
|
|
+ if($baokaoshengming){
|
|
|
+ if(is_array($baokaoshengming)){
|
|
|
+ //删除掉没有成功返回路径的图片
|
|
|
+ foreach ($baokaoshengming as $k => $v){
|
|
|
+ if(!array_key_exists('response',$v)){
|
|
|
+ unset($baokaoshengming[$k]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ $result->baokaoshengming = json_encode($baokaoshengming);
|
|
|
+ $result->save();
|
|
|
+ }
|
|
|
+ }
|
|
|
DB::commit();
|
|
|
if($operation == 2){
|
|
|
$log = [
|