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
Rock Zhang
9 years ago
Commit
dea93f91141a565c3e34a774dc3989448deb5379
1 parent
281d6332
修复限购商品结算进入选择地址页之后再回到结算页左上角的返回链接地址错误的bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
dea93f9
...
...
@@ -331,9 +331,10 @@ class CartModel
$result
=
array
();
$skuList
=
''
;
$isLimitGoods
=
!
empty
(
$sku
)
&&
!
empty
(
$skn
)
&&
!
empty
(
$buyNumber
);
if
(
$isLimitGoods
)
{
// 存在sku,skn和buyNumber时为限购商品
$skuList
=
json_encode
(
array
(
$hasSkuListCookie
=
isset
(
$orderInfo
[
'skuList'
]);
$isLimitGoods
=
$hasSkuListCookie
||
(
!
empty
(
$sku
)
&&
!
empty
(
$skn
)
&&
!
empty
(
$buyNumber
));
if
(
$isLimitGoods
)
{
// 存在sku,skn和buyNumber或者cookie中有skuList时为限购商品
$skuList
=
$hasSkuListCookie
?
$orderInfo
[
'skuList'
]
:
json_encode
(
array
(
array
(
'type'
=>
'limitcode'
,
'limitproductcode'
=>
$limitProductCode
,
...
...
@@ -342,6 +343,7 @@ class CartModel
'buy_number'
=>
$buyNumber
)
));
$result
[
'isLimit'
]
=
true
;
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
dea93f9
...
...
@@ -321,7 +321,7 @@ class IndexController extends AbstractAction
// 限购商品时更换返回按钮地址
if
(
isset
(
$order
[
'isLimit'
]))
{
$returnUrl
=
$this
->
server
(
'HTTP_REFERER'
,
$returnUrl
)
;
$returnUrl
=
Helpers
::
url
(
'/product/show_'
.
$skn
.
'.html'
);
;
}
$data
=
array
(
...
...
Please
register
or
login
to post a comment