From b8e35a9760ec1e9b1cdc71e2ad5771736b4ea0ad Mon Sep 17 00:00:00 2001 From: satori Date: Tue, 24 Dec 2024 16:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=95=B0=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.js b/server.js index 935eecc..e6e8a90 100644 --- a/server.js +++ b/server.js @@ -7,7 +7,7 @@ const app = express() app.use(express.json()) app.get('/api/get_views/:name', (req, res) => { - res.json(get_views(req.params.name, req.query.ids)) + res.json(get_views(req.params.name, req.query.ids.split(","))) }) app.get('/api/get_search/hot', (req, res) => {