Browse Source

修改接口:获取单页推荐列表

FengR 1 month ago
parent
commit
d88e353ed3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/JsonRpc/NewsService.php

+ 2 - 1
app/JsonRpc/NewsService.php

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