15313670163 1 mese fa
parent
commit
66c1f2d1db
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      app/JsonRpc/NewsService.php

+ 2 - 3
app/JsonRpc/NewsService.php

@@ -12,7 +12,6 @@ use Hyperf\RpcServer\Annotation\RpcService;
 use App\Tools\Result;
 use Ramsey\Uuid\Uuid;
 use Hyperf\Utils\Random;
-use App\Model\ArticleSurvey;
 #[RpcService(name: "NewsService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
 class NewsService implements NewsServiceInterface
 {
@@ -445,8 +444,8 @@ class NewsService implements NewsServiceInterface
     public function getArticleInfo(array $data): array
     {
         $where = [
-            'article.id' => $data['id'],
-            'article.status' => 1,
+            'article.id'=>$data['id'],
+            // 'article.status'=>1
         ];
         $result = Article::where($where)->leftJoin("article_data", "article.id", "article_data.article_id")->first();
         if (empty($result)) {