Commit 6ad54a78 authored by zhangjun's avatar zhangjun

修改

parent a913b825
......@@ -867,8 +867,8 @@ class User extends MY_Controller
//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 ) {
$res = !empty( $res ) ? json_decode( $res, 1) : array();
if ( $res['result'] != 1 ) {
echo "<script> alert(". $res['msg'] . ");</script>";die;
}
$result = $this->user_model->updateuser($this->user_id,$arr);
......
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