Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangjun
User
Commits
a913b825
Commit
a913b825
authored
Jul 07, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
a7c58670
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
user.php
center/controllers/user.php
+6
-0
constants.php
esf_core/config/constants.php
+4
-2
No files found.
center/controllers/user.php
View file @
a913b825
...
...
@@ -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
);
}
...
...
esf_core/config/constants.php
View file @
a913b825
...
...
@@ -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'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment