Toggle navigation
Toggle navigation
This project
Loading...
Sign in
chenchao
/
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
hf
9 years ago
Commit
51851c150dce6156c415b6b4c8a1c8ceb8b6c818
1 parent
12d49307
do fixes bug to login errors
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
library/Plugin/Helpers.php
View file @
51851c1
...
...
@@ -443,13 +443,13 @@ class Helpers
* @param string $areaMobile
* @return boolean
*/
public
static
function
verifyAreaMobile
(
$areaMobile
)
public
static
function
verifyAreaMobile
(
$areaMobile
,
$area
)
{
if
(
empty
(
$areaMobile
))
{
return
false
;
}
if
(
!
strpos
(
$areaMobile
,
'-'
))
{
return
self
::
areaMobielVerify
(
$areaMobile
);
return
self
::
areaMobielVerify
(
$areaMobile
,
$area
);
}
else
{
$mobileData
=
explode
(
'-'
,
$areaMobile
);
if
(
count
(
$mobileData
)
!=
2
)
{
...
...
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
51851c1
...
...
@@ -32,7 +32,6 @@ class DetailModel
if
(
is_numeric
(
$productId
)
&&
is_numeric
(
$goodsId
))
{
// 调用服务
$baseInfo
=
DetailData
::
baseInfo
(
$productId
,
$uid
);
var_dump
(
$baseInfo
);
// 判断商品是否在架
if
(
empty
(
$baseInfo
[
'status'
]))
{
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
51851c1
...
...
@@ -113,7 +113,7 @@ class LoginController extends AbstractAction
/* 判断参数是否有效 */
$verifyEmail
=
Helpers
::
verifyEmail
(
$profile
);
$verifyMobile
=
(
$area
===
'86'
)
?
Helpers
::
verifyMobile
(
$profile
)
:
Helpers
::
verifyAreaMobile
(
$profile
);
$verifyMobile
=
(
$area
===
'86'
)
?
Helpers
::
verifyMobile
(
$profile
)
:
Helpers
::
verifyAreaMobile
(
$profile
,
$area
);
if
(
!
$verifyEmail
&&
!
$verifyMobile
)
{
break
;
}
...
...
Please
register
or
login
to post a comment