Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
93b37134b61ad7e96ffa0490944cfa6f71246a38
1 parent
c6b8482d
修改注册
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Register.php
View file @
93b3713
...
...
@@ -156,18 +156,18 @@ class RegisterController extends WebAction
$data
[
'message'
]
=
'密码不正确'
;
break
;
}
$effective_time
=
$this
->
getSession
(
'effective_time'
);
if
(
$effective_time
<
time
()
||
empty
(
$effective_time
))
{
$data
[
'message'
]
=
'注册超时'
;
break
;
}
/* 验证注册的标识码是否有效 */
$data
=
RegData
::
validMobileCode
(
$area
,
$mobile
,
$code
);
if
(
!
isset
(
$data
[
'code'
])
||
$data
[
'code'
]
!=
200
)
{
$data
[
'message'
]
=
'验证码错误'
;
break
;
}
$effective_time
=
$this
->
getSession
(
'effective_time'
);
if
(
$effective_time
<
time
()
||
empty
(
$effective_time
))
{
$data
[
'message'
]
=
'注册超时'
;
break
;
}
/*手机注册*/
$data
=
RegData
::
regMobile
(
$area
,
$mobile
,
$password
);
if
(
!
isset
(
$data
[
'code'
])
||
$data
[
'code'
]
!=
200
)
{
...
...
Please
register
or
login
to post a comment