15313670163 1 mesiac pred
rodič
commit
b07cdf364a

+ 1 - 1
app/Controller/WebController.php

@@ -761,7 +761,7 @@ class WebController extends AbstractController
         }
         $requireData['website_id'] =  Context::get("SiteId");
         // return Result::success($requireData);
-        $result = $this->websiteServiceClient->getWebsiteCatidArticle($requireData);
+        $result = $this->newsServiceClient->getWebsiteCatidArticle($requireData);
         return $result['code']==200?Result::success($result['data']):Result::error($result['message']);
     }
 }

+ 8 - 0
app/JsonRpc/NewsService.php

@@ -205,6 +205,14 @@ class NewsService extends AbstractServiceClient implements NewsServiceInterface
      * @return mixed
      */
     public function selectWebsiteArticle(array $data)
+    {
+        return $this->__request(__FUNCTION__, $data);
+    }
+        /**
+     * @param array $data
+     * @return mixed
+     */
+    public function getWebsiteCatidArticle(array $data)
     {
         return $this->__request(__FUNCTION__, $data);
     }

+ 5 - 0
app/JsonRpc/NewsServiceInterface.php

@@ -111,4 +111,9 @@ interface NewsServiceInterface
      * @return mixed
      */
     public function selectWebsiteArticle(array $data);
+    /**
+     * @param array $data
+     * @return mixed
+    */
+    public function getWebsiteCatidArticle(array $data);
 }

+ 1 - 5
app/JsonRpc/WebsiteServiceInterface.php

@@ -434,9 +434,5 @@ interface WebsiteServiceInterface
      *
      */
     public function getWebsiteParentCategory(array $data);
-    /**
-     * @param array $data
-     * @return mixed
-    */
-    public function getWebsiteCatidArticle(array $data);
+
 }