From 3f01207c29d7655b15180c73f8afe9fbb401f189 Mon Sep 17 00:00:00 2001 From: tone <3341154833@qq.com> Date: Fri, 30 Aug 2024 12:54:22 +0800 Subject: [PATCH] =?UTF-8?q?BlogList=E6=8E=A5=E5=8F=A3=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E8=AE=BF=E9=97=AE=E9=87=8F=E5=8F=8A=E7=82=B9=E8=B5=9E=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/src/APIs/GetBlogList.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/src/APIs/GetBlogList.ts b/Server/src/APIs/GetBlogList.ts index 7f26f8a..0b07917 100644 --- a/Server/src/APIs/GetBlogList.ts +++ b/Server/src/APIs/GetBlogList.ts @@ -10,7 +10,7 @@ class GetBlogList extends API { private defaultAccessLevel = 6; public async onRequset(data: any, res: any) { - let blogListRes = await MySQLConnection.execute('SELECT uuid, title, description, publish_time from blog WHERE access_level > ? ORDER BY publish_time DESC',[this.defaultAccessLevel]); + let blogListRes = await MySQLConnection.execute('SELECT uuid, title, description, publish_time, visit_count, like_count from blog WHERE access_level > ? ORDER BY publish_time DESC',[this.defaultAccessLevel]); if(!blogListRes){ this.logger.error('查询时数据库发生错误'); return res.json(ServerStdResponse.SERVER_ERROR);