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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
59d271e886a24ff3544e01b7ddc14bcc213af4c1
2 parents
d7a98aba
214a69c6
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
library/Plugin/Helpers.php
View file @
59d271e
...
...
@@ -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/Index/User.php
View file @
59d271e
...
...
@@ -385,7 +385,11 @@ class UserModel
// 处理YOHO币数据
if
(
isset
(
$yohoCoin
[
'data'
])
&&
!
empty
(
$yohoCoin
[
'data'
])){
$coinList
=
$yohoCoin
[
'data'
][
'coinlist'
];
$data
[
'money'
]
=
$yohoCoin
[
'data'
][
'total'
];
// 获取有货币总数
$total
=
self
::
getYohoCoinData
(
$uid
);
$data
[
'money'
]
=
!
empty
(
$total
)
?
$total
[
'yohoCoin'
][
'coinNum'
]
:
0
;
foreach
(
$coinList
as
$key
=>
$val
){
$result
[
$key
][
'title'
]
=
$val
[
'message'
];
$result
[
$key
][
'time'
]
=
$val
[
'date'
];
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
59d271e
...
...
@@ -276,7 +276,7 @@ class IndexController extends AbstractAction
$uid
=
$this
->
getUid
(
true
);
$cartGoods
=
CartModel
::
getCartData
(
$uid
,
$shoppingKey
);
if
(
empty
(
$cartGoods
)
||
isset
(
$cartGoods
[
'isEmptyCart'
]))
{
$this
->
go
(
Helpers
::
url
(
'/
shoppingcart
'
));
$this
->
go
(
Helpers
::
url
(
'/
cart/index/index
'
));
}
$cartType
=
$this
->
get
(
'cartType'
,
'ordinary'
);
...
...
yohobuy/m.yohobuy.com/application/modules/Passport/controllers/Login.php
View file @
59d271e
...
...
@@ -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