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
runner
9 years ago
Commit
8db3c385ef10b4e680df9b87055724d1db66f47e
1 parent
8f81dc6e
age_level to ageLevel
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
library/LibModels/Wap/Product/SearchData.php
yohobuy/m.yohobuy.com/application/controllers/Search.php
library/LibModels/Wap/Product/SearchData.php
View file @
8db3c38
...
...
@@ -173,7 +173,10 @@ class SearchData
if
(
!
empty
(
$condition
))
{
$param
+=
$condition
;
}
if
(
isset
(
$param
[
'age_level'
]))
{
$param
[
'ageLevel'
]
=
$param
[
'age_level'
];
unset
(
$param
[
'age_level'
]);
}
return
Yohobuy
::
get
(
self
::
getSearchUrl
(),
$param
,
$cache
);
}
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
8db3c38
...
...
@@ -327,12 +327,7 @@ class SearchController extends AbstractAction
$tagSale
=
$this
->
get
(
'tagSale'
,
0
);
$tagSale
=
$tagSale
===
0
?
true
:
false
;
// 过滤掉值为空的条件
if
(
isset
(
$condition
[
'age_level'
])
&&
$condition
[
'age_level'
]
===
'0'
){
//年龄删选的成人id为0
$condition
=
array_filter
(
$condition
);
$condition
[
'age_level'
]
=
'0'
;
}
else
{
$condition
=
array_filter
(
$condition
);
}
$condition
=
array_filter
(
$condition
);
// /* 模糊搜索关键词 */
// if (isset($condition['query'])) {
...
...
Please
register
or
login
to post a comment