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
41a828f52872616f9eef4dfd178ec7376eff782e
2 parents
032294e3
90273b5b
Merge remote-tracking branch 'remotes/origin/hotfix/urlSexChecked'
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
1 deletions
library/Plugin/DataProcess/ListProcess.php
yohobuy/m.yohobuy.com/application/controllers/Search.php
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
library/Plugin/DataProcess/ListProcess.php
View file @
41a828f
...
...
@@ -188,7 +188,7 @@ class ListProcess
'dataType'
=>
'gender'
,
'subs'
=>
array
(
array
(
'dataId'
=>
empty
(
$gender
)
?
'1,2,3'
:
$gender
,
// 产品非要这么做,我也没有办法
'dataId'
=>
'1,2,3'
,
'name'
=>
'所有性别'
)
)
...
...
yohobuy/m.yohobuy.com/application/controllers/Search.php
View file @
41a828f
...
...
@@ -339,6 +339,20 @@ class SearchController extends AbstractAction
// /* 精确搜索品类 */
// $data = Product\ListModel::getClassData($condition);
// 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致
if
(
$condition
[
'gender'
]
===
'1,2,3'
)
{
switch
(
$condition
[
'channel'
])
{
case
1
:
$condition
[
'gender'
]
=
'1,3'
;
break
;
case
2
:
$condition
[
'gender'
]
=
'2,3'
;
break
;
default
:
break
;
}
}
$data
=
Product\SearchModel
::
getSearchData
(
$condition
,
$showTag
,
$tagNew
,
$tagSale
);
}
while
(
false
);
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Newsale.php
View file @
41a828f
...
...
@@ -151,6 +151,20 @@ class NewsaleController extends AbstractAction
// 转换频道
$channel
=
$this
->
get
(
'channel'
)
?
$this
->
get
(
'channel'
)
:
Helpers
::
getChannelByCookie
();
// 产品吴婷要求这么做,目的是保持性别中的所有性别和当前频道性别一致
if
(
$gender
===
'1,2,3'
)
{
switch
(
$channel
)
{
case
1
:
$gender
=
'1,3'
;
break
;
case
2
:
$gender
=
'2,3'
;
break
;
default
:
break
;
}
}
$data
=
NewsaleData
::
selectNewSaleProducts
(
$gender
,
$brand
,
$sort
,
$color
,
$size
,
$price
,
$p_d
,
$channel
,
$dayLimit
,
$limit
,
$page
,
$order
,
null
);
...
...
Please
register
or
login
to post a comment