Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
87773637286d83d58588b060c08b774610a6ccbe
1 parent
4b09f3d3
修复结算时url参数传递的cartType与cokie中的cartType冲突的bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
8777363
...
...
@@ -276,10 +276,10 @@ class IndexController extends AbstractAction
$this
->
setNavHeader
(
'确认订单'
,
Helpers
::
url
(
'/cart/index/index'
),
false
);
// 不显示右上角home按钮
// 购物车商品为空跳转到购物车页面
$cartType
=
$this
->
get
(
'cartType'
,
'
ordinary
'
);
$cartType
=
$this
->
get
(
'cartType'
,
''
);
$cookieData
=
$this
->
getCookie
(
'order-info'
,
null
);
$orderInfo
=
array
();
if
(
!
empty
(
$cookieData
))
{
if
(
empty
(
$cartType
)
&&
!
empty
(
$cookieData
))
{
$orderInfo
=
json_decode
(
$cookieData
,
true
);
$cartType
=
$orderInfo
[
'cartType'
];
}
...
...
Please
register
or
login
to post a comment