Explorar el Código

修改获取新闻详情的接口

15313670163 hace 2 meses
padre
commit
1d9d491062

+ 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

@@ -151,5 +151,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

@@ -76,5 +76,9 @@ interface NewsServiceInterface
      * @return mixed
      */
     public function getWebsiteArticleList(array $data);
-
+     /**
+     * @param array $data
+     * @return mixed
+     */
+    public function selectWebsiteArticleInfo(array $data);
 }