Commit a913b825 authored by zhangjun's avatar zhangjun

修改

parent a7c58670
......@@ -865,6 +865,12 @@ class User extends MY_Controller
$arr['sex'] = $this->input->post('sex');
$arr['birthdate'] = strtotime($this->input->post('year')."-".$this->input->post('month')."-".$this->input->post('day'));
//var_dump($arr['birthdate']);exit;
$url = GB_UPDATE_USER_INFO_BY_USER_ID_URL . '?city=nj='.GB_CITY.'&email='.$arr['email'].'&uid='.$this->user_id . '&sex=' . $arr['sex'] . '&birthdate=' . $arr['birthdate'];
$res = curl_get_contents( $url );
$res = !empty( $res ) ? json_encode( $res, 1) : array();
if ( $res['resjult'] != 1 ) {
echo "<script> alert(". $res['msg'] . ");</script>";die;
}
$result = $this->user_model->updateuser($this->user_id,$arr);
}
......
......@@ -391,10 +391,12 @@ define('GB_FORGET_SMS_URL','http://user.house365.com/');
define('GB_EDIT_PHONE_URL','http://newrenttest.house365.com/user-center/edit-phone');
// 修改密码页面地址
define('GB_EDIT_PWD_URL','http://newrenttest.house365.com/user-center/edit-pwd');
// 基于个人用户ID获取用户数据
// 基于个人用户ID获取用户数据接口地址
define('GB_GET_USER_INFO_BY_USER_ID_URL', 'http://newrenttest.house365.com/api/tf-app/get-user-info-by-personal-id');
// 基于sso_token获取用户数据
// 基于sso_token获取用户数据接口地址
define('GB_GET_USER_INFO_BY_SSO_URL', 'http://ucentertest.house365.com/index/user/info');
// 基于个人用户ID更新用户数据接口地址
define('GB_UPDATE_USER_INFO_BY_USER_ID_URL', 'http://newrenttest.house365.com/api/tf-app/update-personal-info');
if($_SERVER['SERVER_ADDR'] == '192.168.105.106')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment