/**
  * 注册流程 - 执行第三步骤
  * 添加标签
  */
 public function doStep3()
 {
     $map = t_Arr($_POST);
     $map['location'] = $map['city_names'];
     $map['birthday'] = strtotime($map['birthY'] . '-' . $map['birthM'] . '-' . $map['birthD']);
     $map['uid'] = $_SESSION['mid'];
     $this->_user_model->save($map);
     //dump($this->_user_model->getLastSql());
     //保存教育信息
     D('UserEduinfo')->save_Eduinfo($map);
     //保存工作信息
     D('UserWorkinfo')->save_workinfo($map);
     header('Location:' . U('public/Register/Step4'));
 }
Example #2
0
 /**
  * [ 保存工作信息 ]
  * @return [type] [description]
  */
 public function doWorkInfo()
 {
     $map = t_Arr($_POST);
     $map['uid'] = $this->mid;
     $flag1 = D('User')->save($map);
     if ($flag1) {
         if ($map['uwid']) {
             $flag2 = D('UserWorkinfo')->save($map);
         } else {
             $flag2 = D('UserWorkinfo')->save_workinfo($map);
         }
         if ($flag2) {
             if ($map['company_name'] && $map['industryP'] && $map['industryC']) {
                 model('Credit')->setUserCredit($this->mid, 'work_info');
             }
             return $this->ajaxReturn(null, '操作成功', 1);
             die;
         }
     }
     return $this->ajaxReturn(null, '操作失败', 0);
 }