|  | @@ -444,6 +444,19 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |                  $user_info['other_certification'] = $other_certification;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                if(json_decode($user_info['chengnuoshu'])){
 | 
	
		
			
				|  |  | +                    $chengnuoshu = json_decode($user_info['chengnuoshu'],true);
 | 
	
		
			
				|  |  | +                    foreach ($chengnuoshu as $k => $v){
 | 
	
		
			
				|  |  | +                        if(array_key_exists('response',$v)){
 | 
	
		
			
				|  |  | +                            $chengnuoshu[$k]['url'] = $v['response']['path'];
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                }else{
 | 
	
		
			
				|  |  | +                    $chengnuoshu = [];
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                $user_info['chengnuoshu'] = $chengnuoshu;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  //获取最新的报名审核信息
 | 
	
		
			
				|  |  |                  $logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
 | 
	
		
			
				|  |  |                  if($logs){
 | 
	
	
		
			
				|  | @@ -549,6 +562,24 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                      $user_info['other_certification'] = $other_certification;
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +                //如果有承诺书模块
 | 
	
		
			
				|  |  | +                if(in_array('chengnuoshu',$forms)){
 | 
	
		
			
				|  |  | +                    if(json_decode($user_info['chengnuoshu'])){
 | 
	
		
			
				|  |  | +                        $chengnuoshu = json_decode($user_info['chengnuoshu'],true);
 | 
	
		
			
				|  |  | +                        foreach ($chengnuoshu as $k => $v){
 | 
	
		
			
				|  |  | +                            if(array_key_exists('response',$v)){
 | 
	
		
			
				|  |  | +                                if(array_key_exists('path',$v['response'])){
 | 
	
		
			
				|  |  | +                                    $chengnuoshu[$k]['url'] = $v['response']['path'];
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }else{
 | 
	
		
			
				|  |  | +                        $chengnuoshu = [];
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +                    $user_info['chengnuoshu'] = $chengnuoshu;
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  //获取最新的报名审核信息
 | 
	
		
			
				|  |  |                  $logs = RecruitAppointLog::where('appoint_id',$user_info->id)->where('step',1)->where('type',2)->orderBy('created_at','desc')->first();
 | 
	
		
			
				|  |  |                  if($logs){
 | 
	
	
		
			
				|  | @@ -606,7 +637,8 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                      ],
 | 
	
		
			
				|  |  |                      'identification' => [],
 | 
	
		
			
				|  |  |                      'education_certification' => [],
 | 
	
		
			
				|  |  | -                    'other_certification' => []
 | 
	
		
			
				|  |  | +                    'other_certification' => [],
 | 
	
		
			
				|  |  | +                    'chengnuoshu' => []
 | 
	
		
			
				|  |  |                  ]);
 | 
	
		
			
				|  |  |              }else{
 | 
	
		
			
				|  |  |                  //如果没有,结合基础数据及模块表单信息,制作数据对象
 | 
	
	
		
			
				|  | @@ -641,6 +673,9 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                  if(in_array('other_certification',$forms)){
 | 
	
		
			
				|  |  |                      $user_info['other_certification'] = [];
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | +                if(in_array('chengnuoshu',$forms)){
 | 
	
		
			
				|  |  | +                    $user_info['chengnuoshu'] = [];
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  |                  $user_info['recruit_id'] = $id;
 | 
	
		
			
				|  |  |                  $user_info['operation'] = 1;
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -974,6 +1009,24 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                              $appoint_info->save();
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    //如果有承诺书模块
 | 
	
		
			
				|  |  | +                    if(in_array('chengnuoshu',$forms)){
 | 
	
		
			
				|  |  | +                        $chengnuoshu = $request->input('chengnuoshu');
 | 
	
		
			
				|  |  | +                        if(is_array($chengnuoshu)){
 | 
	
		
			
				|  |  | +                            //删除掉没有成功返回路径的图片
 | 
	
		
			
				|  |  | +                            foreach ($chengnuoshu as $k => $v){
 | 
	
		
			
				|  |  | +                                if(!array_key_exists('response',$v)){
 | 
	
		
			
				|  |  | +                                    unset($chengnuoshu[$k]);
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        if($chengnuoshu){
 | 
	
		
			
				|  |  | +                            $appoint_info->chengnuoshu = json_encode($chengnuoshu);
 | 
	
		
			
				|  |  | +                            $appoint_info->save();
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      DB::commit();
 | 
	
		
			
				|  |  |                      if($operation == 2){
 | 
	
		
			
				|  |  |                          $log = [
 | 
	
	
		
			
				|  | @@ -1079,6 +1132,24 @@ class IndexController extends WebBaseController
 | 
	
		
			
				|  |  |                              $result->save();
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                    //如果有承诺书模块
 | 
	
		
			
				|  |  | +                    if(in_array('chengnuoshu',$forms)){
 | 
	
		
			
				|  |  | +                        $chengnuoshu = $request->input('chengnuoshu');
 | 
	
		
			
				|  |  | +                        if($chengnuoshu){
 | 
	
		
			
				|  |  | +                            if(is_array($chengnuoshu)){
 | 
	
		
			
				|  |  | +                                //删除掉没有成功返回路径的图片
 | 
	
		
			
				|  |  | +                                foreach ($chengnuoshu as $k => $v){
 | 
	
		
			
				|  |  | +                                    if(!array_key_exists('response',$v)){
 | 
	
		
			
				|  |  | +                                        unset($chengnuoshu[$k]);
 | 
	
		
			
				|  |  | +                                    }
 | 
	
		
			
				|  |  | +                                }
 | 
	
		
			
				|  |  | +                            }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                            $result->chengnuoshu = json_encode($chengnuoshu);
 | 
	
		
			
				|  |  | +                            $result->save();
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  |                      DB::commit();
 | 
	
		
			
				|  |  |                      if($operation == 2){
 | 
	
		
			
				|  |  |                          $log = [
 |