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
Plain Diff
Browse Files
Authored by
周奇琪
9 years ago
Commit
361d9f4b3ef3e7e1dc62e7abca4c490456a3655d
2 parents
86a3a177
e0f30a01
Merge branch 'release/4.6'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 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 @
361d9f4
...
...
@@ -302,12 +302,13 @@ class IndexController extends AbstractAction
// 返回地址
$returnUrl
=
Helpers
::
url
(
'/cart/index/index'
);
$cartType
=
$this
->
get
(
'cartType'
,
''
);
$cartType
=
$this
->
get
(
'cartType'
,
'
ordinary
'
);
$cookieData
=
$this
->
getCookie
(
'order-info'
,
null
);
$orderInfo
=
array
();
if
(
!
empty
(
$cookieData
))
{
$orderInfo
=
json_decode
(
$cookieData
,
true
);
$cartType
=
$orderInfo
[
'cartType'
];
//如果为空,获取默认
$cartType
=
empty
(
$orderInfo
[
'cartType'
])
?
$cartType
:
$orderInfo
[
'cartType'
];
}
// 如果传递了code, sku,skn,buy_number就代表是限购商品
...
...
Please
register
or
login
to post a comment