Parcourir la source

修改验证网站路由的接口:企业相关根据栏目进行同步,不受网站限制

15313670163 il y a 5 mois
Parent
commit
78b9c80854
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4 2
      app/JsonRpc/NewsService.php

+ 4 - 2
app/JsonRpc/NewsService.php

@@ -2825,8 +2825,10 @@ private function fetchArticles($catId, $website, $limit, $isImageArticle = false
         case 6:
           // 企业
           // `status` int DEFAULT '1' COMMENT '审核状态状态:0:未审核;1:已审核;2:已拒绝;',
-          $article = Company::where('website_id', $data['website_id'])
-            ->where('status', 1)
+          $article = Company::
+        //   where('website_id', $data['website_id'])
+            // ->
+            where('status', 1)
             ->where('id', $data['id'])
             ->first(['cat_arr_id']);
           if (empty($article)) {