Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
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
0e753bcf48190582603cc9968375942f1bd6cae1
1 parent
b3047120
common修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/controllers/Common.php
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
yohobuy/www.yohobuy.com/application/controllers/Common.php
View file @
0e753bc
...
...
@@ -80,9 +80,9 @@ class CommonController extends WebAction
public
function
getbannerAction
()
{
$url
=
'http://service.api.yohobuy.com/operations/api/v4/resource/get?'
;
$content_code
=
$this
->
_get
(
'content_code'
,
''
);
$client_type
=
$this
->
_get
(
'client_type'
,
'web'
);
$callback
=
$this
->
_get
(
'callback'
,
''
);
$content_code
=
$this
->
get
(
'content_code'
,
''
);
$client_type
=
$this
->
get
(
'client_type'
,
'web'
);
$callback
=
$this
->
get
(
'callback'
,
''
);
$params
=
array
(
'content_code'
=>
$content_code
,
'client_type'
=>
$client_type
...
...
yohobuy/www.yohobuy.com/application/modules/Passport/controllers/Back.php
View file @
0e753bc
...
...
@@ -3,6 +3,7 @@ use Action\WebAction;
use
LibModels\Web\Passport\RegData
;
use
Passport\PassportModel
;
use
Plugin\Helpers
;
use
LibModels\Wap\Passport\BackData
;
class
BackController
extends
WebAction
{
...
...
@@ -37,12 +38,15 @@ class BackController extends WebAction
public
function
emailAction
()
{
$phoneNum
=
$this
->
post
(
'phoneNum'
,
''
);
$area
=
$this
->
post
(
'area'
,
'86'
);
$captcha
=
$this
->
post
(
'captcha'
,
''
);
if
(
Helpers
::
verifyEmail
(
$phoneNum
)){
//验证邮箱
$email
=
$phoneNum
;
BackData
::
sendCodeToEmail
(
$email
);
$this
->
redirect
(
'sendemail'
);
}
else
if
(
Helpers
::
verifyMobile
(
$phoneNum
))
{
//验证手机号
$mobile
=
$phoneNum
;
BackData
::
sendCodeToMobile
(
$mobile
);
$this
->
redirect
(
'verification'
);
}
}
...
...
Please
register
or
login
to post a comment