소스 검색

修改c端接口:前端-获取新闻详情

15313670163 1 일 전
부모
커밋
5c3fd37997
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      app/JsonRpc/NewsService.php

+ 5 - 0
app/JsonRpc/NewsService.php

@@ -1071,6 +1071,11 @@ class NewsService implements NewsServiceInterface
         $query->whereRaw("JSON_CONTAINS(ignore_ids, '" . intval($data['website_id']) . "') = 0")
           ->orWhereNull("ignore_ids");
       })
+      ->select('article.*','article_data.content','article_data.article_id',
+            'article_extend.website_url','article_extend.email','article_extend.contacts', 
+            'article_extend.contacts_mobile','article_extend.contacts_address','article_extend.zip_code',
+            'article_extend.enterprise_name'
+        )
       ->first();
     if (empty($result)) {
       return Result::error("暂无此新闻!", 0);