Browse Source

查询搜索调整

master
xiaodong 2 weeks ago
parent
commit
af444e1dc1
  1. 18
      app/service/ContentService.php

18
app/service/ContentService.php

@ -467,14 +467,20 @@ class ContentService {
'check_status' => 3, 'check_status' => 3,
'is_del'=>1, 'is_del'=>1,
]; ];
switch ($param['isTop']) {
case 1:
if($param['isTop'] != 2){
$where['is_top'] = 1; $where['is_top'] = 1;
break;
case 2:
$where['is_top'] = 2;
break;
} }
// switch ($param['isTop']) {
// case 1:
// $where['is_top'] = 1;
// break;
// case 2:
// $where['is_top'] = 2;
// break;
// }
if($param['isCommend'] != 2){ if($param['isCommend'] != 2){
$where['is_recommend'] = 1; $where['is_recommend'] = 1;
} }

Loading…
Cancel
Save