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
58b0bc5b2c817052406ada86adb8ccc90a2e61b1
1 parent
152ed333
修改brands参数
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
yohobuy/www.yohobuy.com/application/modules/Product/controllers/Index.php
View file @
58b0bc5
...
...
@@ -50,9 +50,11 @@ class IndexController extends WebAction
'rowNum'
=>
FILTER_VALIDATE_INT
,
'page'
=>
FILTER_VALIDATE_INT
,),
false
);
//字符转码
foreach
(
$condition
as
&
$value
)
{
$value
=
rawurldecode
(
$value
);
if
(
!
empty
(
$condition
))
{
//字符转码
foreach
(
$condition
as
&
$value
)
{
$value
=
rawurldecode
(
$value
);
}
}
//传品牌ID参数
$condition
[
'brand'
]
=
$brandId
;
...
...
@@ -63,7 +65,7 @@ class IndexController extends WebAction
//每页显示商品数
if
(
!
isset
(
$condition
[
'viewNum'
])
||
empty
(
$condition
[
'viewNum'
])){
$condition
[
'viewNum'
]
=
60
;
$condition
[
'viewNum'
]
=
60
;
}
$view_num_arr
=
array
(
60
,
100
,
200
);
if
(
!
in_array
(
$condition
[
'viewNum'
],
$view_num_arr
))
{
...
...
@@ -89,8 +91,8 @@ class IndexController extends WebAction
'minImgSize'
=>
$minImgSize
,
'gender'
=>
$gender
,
'needPd'
=>
'Y'
,
'rowNum'
=>
$condition
[
'rowNum'
],
'viewNum'
=>
$condition
[
'viewNum'
],
'rowNum'
=>
$condition
[
'rowNum'
],
'viewNum'
=>
$condition
[
'viewNum'
],
);
$params
=
$condition
+
$_GET
;
...
...
Please
register
or
login
to post a comment