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
hf
2015-12-22 01:48:20 +0800
Commit
d79f108b5e20aa6ba0569bcfdd04a1bcce9a566b
1 parent
c42ad1dd
code review by hf: merge master code to develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
d79f108
...
...
@@ -63,6 +63,10 @@ class CartModel
// 调用接口获取购物车的数据
$cartData
=
CartData
::
cartData
(
$uid
,
$shoppingKey
);
// 当购物车为空时,用户也已经登录过, 再取一次
if
(
empty
(
$cartData
[
'data'
])
&&
is_numeric
(
$uid
)
&&
!
empty
(
$shoppingKey
))
{
$cartData
=
CartData
::
cartData
(
0
,
$shoppingKey
);
}
// 处理普通购物车和预售购物车的数据
do
{
...
...
Please
register
or
login
to post a comment