|
@@ -9823,6 +9823,8 @@ class NewsService implements NewsServiceInterface
|
|
|
if (empty($user)) {
|
|
if (empty($user)) {
|
|
|
return Result::error('用户不存在');
|
|
return Result::error('用户不存在');
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ $where = [];
|
|
|
if(empty($data['website_id']) && $user['type_id'] == 10000){
|
|
if(empty($data['website_id']) && $user['type_id'] == 10000){
|
|
|
$category = [];
|
|
$category = [];
|
|
|
}else{
|
|
}else{
|
|
@@ -9835,7 +9837,6 @@ class NewsService implements NewsServiceInterface
|
|
|
return Result::error("推荐单页不存在");
|
|
return Result::error("推荐单页不存在");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- $where = [];
|
|
|
|
|
if(!empty($data['title'])){
|
|
if(!empty($data['title'])){
|
|
|
|
|
|
|
|
array_push($where, ['title', 'like', '%'.$data['title'].'%']);
|
|
array_push($where, ['title', 'like', '%'.$data['title'].'%']);
|