From 62a9b39ed0c1eb9d57f31dbc2726231a1ac0f7cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E6=B5=B7=E6=B4=8B?= Date: Sat, 23 May 2026 14:37:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E7=AB=AF=E5=8F=A3=203005?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.js | 2 +- routes/upload.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 3fcc702..f5ff78d 100644 --- a/app.js +++ b/app.js @@ -58,7 +58,7 @@ router.use('/api/stock', stockRoutes) app.use(router.routes()) app.use(router.allowedMethods()) -const PORT = process.env.PORT || 3000 +const PORT = process.env.PORT || 3005 app.listen(PORT, () => { console.log(`Server running on port ${PORT}`) }) \ No newline at end of file diff --git a/routes/upload.js b/routes/upload.js index c7a81e8..ba93595 100644 --- a/routes/upload.js +++ b/routes/upload.js @@ -36,7 +36,7 @@ router.post('/', upload.single('file'), async (ctx) => { return } - const fileUrl = `http://localhost:3000/uploads/${ctx.file.filename}` + const fileUrl = `http://localhost:3005/uploads/${ctx.file.filename}` ctx.body = { code: 200, message: '上传成功',