浏览代码

修改b端接口:获取资讯列表;

FengR 3 月之前
父节点
当前提交
5f0453b940
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      app/JsonRpc/NewsService.php

+ 2 - 1
app/JsonRpc/NewsService.php

@@ -444,7 +444,8 @@ class NewsService implements NewsServiceInterface
                ->where('article_ignore.website_id', $data['website_id']);
         });
       })
-      ->select("article.*", "category.name as category_name", "website_category.alias",'article_ignore.c_show_time')
+      ->select("article.*", "category.name as category_name", "website_category.alias", 
+               Db::raw('IFNULL(article_ignore.c_show_time, "") as c_show_time'))
       ->orderBy("article.updated_at", "desc")
       ->limit($data['pageSize'])
       ->offset(($data['page'] - 1) * $data['pageSize'])->get();