Przeglądaj źródła

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

15313670163 1 dzień temu
rodzic
commit
5c3fd37997
1 zmienionych plików z 5 dodań i 0 usunięć
  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);