|
@@ -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)) {
|