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
whb
9 years ago
Commit
bcfcc336bb0dfde0484012ca656ffa5f4714eea1
1 parent
c5a4ecd6
修改sale
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Sale.php
View file @
bcfcc33
...
...
@@ -13,13 +13,15 @@ class SaleController extends WebAction
public
function
indexAction
()
{
//获取专区ID
$specialsaleId
=
$this
->
param
(
'specialsaleI
d'
);
$specialsaleId
=
$this
->
get
(
'specialsale_i
d'
);
$specialInfo
=
SaleData
::
getSpecial
(
$specialsaleId
);
$special
=
$specialInfo
[
'data'
];
if
(
isset
(
$specialInfo
[
'data'
]))
{
$special
=
$specialInfo
[
'data'
];
}
else
{
$special
=
array
();
}
//获取促销ID
$promotion
=
$this
->
param
(
'promotion'
);
$promotion
=
$this
->
get
(
'promotion'
);
//专区ID和促销ID都为空时,跳转到主页
if
(
empty
(
$specialsaleId
)
&&
empty
(
$promotion
))
{
$this
->
go
(
SITE_MAIN
);
...
...
Please
register
or
login
to post a comment