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
ac6ab43d
Commit
ac6ab43d
authored
Jul 11, 2022
by
zhangjun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6032c623
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
findpasswordUcenter.php
center/controllers/findpasswordUcenter.php
+1
-1
findpassword.php
center/views/findpassword.php
+2
-1
user_model.php
esf_core/models/user_model.php
+2
-4
No files found.
center/controllers/findpasswordUcenter.php
View file @
ac6ab43d
...
@@ -57,7 +57,7 @@ class FindpasswordUcenter extends MY_Controller {
...
@@ -57,7 +57,7 @@ class FindpasswordUcenter extends MY_Controller {
//全站个人会员中心和二手房都有此用户
//全站个人会员中心和二手房都有此用户
if
(
$result2
>
0
)
if
(
$result2
>
0
)
{
{
$ucenterReturn
=
$this
->
user_model
->
forgetpwdUcenter
(
$telno
,
$password
,
$validcode
,
$this
->
userid
);
$ucenterReturn
=
$this
->
user_model
->
forgetpwdUcenter
(
$telno
,
$password
,
$validcode
);
if
(
$ucenterReturn
[
'result'
]
==
1
)
if
(
$ucenterReturn
[
'result'
]
==
1
)
{
{
//登录个人会员中心
//登录个人会员中心
...
...
center/views/findpassword.php
View file @
ac6ab43d
...
@@ -90,7 +90,8 @@ $(function(){
...
@@ -90,7 +90,8 @@ $(function(){
var
flag
=
true
;
var
flag
=
true
;
$
.
ajax
({
$
.
ajax
({
type
:
'post'
,
type
:
'post'
,
url
:
'
<?php
echo
USER_CENTER
;
?>
findpassword'
,
//url : '
<?php
//echo USER_CENTER;?>findpassword',
url
:
'<?php //echo USER_CENTER;?>findpasswordUcenter'
,
data
:
"telno="
+
$
(
"#telno"
)
.
val
()
+
"&validcode="
+
$
(
"#validcode"
)
.
val
()
+
"&setNewPassword="
+
$
(
"#setNewPassword"
)
.
val
()
+
"&repetPassword="
+
$
(
"#repetPassword"
)
.
val
()
+
"&kind="
+
$
(
"#kind"
)
.
val
(),
data
:
"telno="
+
$
(
"#telno"
)
.
val
()
+
"&validcode="
+
$
(
"#validcode"
)
.
val
()
+
"&setNewPassword="
+
$
(
"#setNewPassword"
)
.
val
()
+
"&repetPassword="
+
$
(
"#repetPassword"
)
.
val
()
+
"&kind="
+
$
(
"#kind"
)
.
val
(),
dataType
:
'html'
,
dataType
:
'html'
,
success
:
function
(
msg
){
success
:
function
(
msg
){
...
...
esf_core/models/user_model.php
View file @
ac6ab43d
...
@@ -714,12 +714,11 @@ class User_model extends MY_Model
...
@@ -714,12 +714,11 @@ class User_model extends MY_Model
* @param int $uid
* @param int $uid
* @return string
* @return string
*/
*/
function
forgetpwdUcenter
(
$telno
,
$pwd
,
$code
,
$uid
)
function
forgetpwdUcenter
(
$telno
,
$pwd
,
$code
)
{
{
$url
=
GB_FORGET_PWD_URL
.
'?phone='
.
$telno
.
'&pwd='
.
$pwd
.
'&
uid='
.
$uid
.
'&
code='
.
$code
;
$url
=
GB_FORGET_PWD_URL
.
'?phone='
.
$telno
.
'&pwd='
.
$pwd
.
'&code='
.
$code
;
$userRes
=
curl_get_contents
(
$url
);
$userRes
=
curl_get_contents
(
$url
);
$userRes
=
!
empty
(
$userRes
)
?
json_decode
(
$userRes
,
1
)
:
array
();
$userRes
=
!
empty
(
$userRes
)
?
json_decode
(
$userRes
,
1
)
:
array
();
$userRes
[
'result'
]
=
isset
(
$userRes
[
'result'
]
)
?
isset
(
$userRes
[
'result'
]
)
:
0
;
return
$userRes
;
return
$userRes
;
}
}
...
@@ -733,7 +732,6 @@ class User_model extends MY_Model
...
@@ -733,7 +732,6 @@ class User_model extends MY_Model
$url
=
GB_PHONE_LOGIN_URL
.
'?telno='
.
$telno
.
'&password='
.
$pwd
;
$url
=
GB_PHONE_LOGIN_URL
.
'?telno='
.
$telno
.
'&password='
.
$pwd
;
$userRes
=
curl_get_contents
(
$url
);
$userRes
=
curl_get_contents
(
$url
);
$userRes
=
!
empty
(
$userRes
)
?
json_decode
(
$userRes
,
1
)
:
array
();
$userRes
=
!
empty
(
$userRes
)
?
json_decode
(
$userRes
,
1
)
:
array
();
$userRes
[
'result'
]
=
isset
(
$userRes
[
'result'
]
)
?
isset
(
$userRes
[
'result'
]
)
:
0
;
return
$userRes
;
return
$userRes
;
}
}
...
...
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