ソースを参照

前端-三农资讯网修改获取新闻详情接口

15313670163 2 ヶ月 前
コミット
8ce7c302ce

+ 1 - 1
app/Controller/WebController.php

@@ -453,7 +453,7 @@ class WebController extends AbstractController
             'website_id'=>Context::get("SiteId"),
             'id'=>$requireData['articleid'],
         ]; 
-        $result = $this->newsServiceClient->getArticleInfo($data);
+        $result = $this->newsServiceClient->selectWebsiteArticleInfo($data);
         // var_dump($result);
         if ($result['code'] != ErrorCode::SUCCESS) {
             return Result::error($result['message'],0,[]);

+ 8 - 1
app/JsonRpc/NewsService.php

@@ -168,5 +168,12 @@ class NewsService extends AbstractServiceClient implements NewsServiceInterface
     {
         return $this->__request(__FUNCTION__, $data);
     }
-
+     /**
+     * @param array $data
+     * @return array
+     */
+    public function selectWebsiteArticleInfo(array $data)
+    {
+        return $this->__request(__FUNCTION__, $data);
+    }
 }

+ 5 - 1
app/JsonRpc/NewsServiceInterface.php

@@ -82,7 +82,11 @@ interface NewsServiceInterface
      * @return mixed
      */
     public function getWebsiteArticleList(array $data);
-
+     /**
+     * @param array $data
+     * @return mixed
+     */
+    public function selectWebsiteArticleInfo(array $data);
     /**
      * @param array $data
      * @return mixed