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
f951e2e83dc6f313beb757809b759de18e50398b
1 parent
f2f06676
添加搜索中对已售罄商品的过滤
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
library/LibModels/Wap/Product/SearchData.php
library/LibModels/Wap/Product/SearchData.php
View file @
f951e2e
...
...
@@ -144,6 +144,7 @@ class SearchData
$param
=
array
();
$param
[
'status'
]
=
1
;
// 是否上架,1表示在架,2表示不在
$param
[
'sales'
]
=
'Y'
;
// 只搜索销售的产品
$param
[
'stocknumber'
]
=
1
;
// 过滤掉已售罄的商品
// $param['needFilter'] = 1; // 是否需要返回筛选条件
if
(
!
isset
(
$condition
[
'order'
]))
{
$param
[
'order'
]
=
$orderMaps
[
's_t_desc'
];
...
...
Please
register
or
login
to post a comment