更改端口 3005

This commit is contained in:
董海洋
2026-05-23 14:37:06 +08:00
parent 46a603bedb
commit 62a9b39ed0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ router.use('/api/stock', stockRoutes)
app.use(router.routes()) app.use(router.routes())
app.use(router.allowedMethods()) app.use(router.allowedMethods())
const PORT = process.env.PORT || 3000 const PORT = process.env.PORT || 3005
app.listen(PORT, () => { app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`) console.log(`Server running on port ${PORT}`)
}) })
+1 -1
View File
@@ -36,7 +36,7 @@ router.post('/', upload.single('file'), async (ctx) => {
return return
} }
const fileUrl = `http://localhost:3000/uploads/${ctx.file.filename}` const fileUrl = `http://localhost:3005/uploads/${ctx.file.filename}`
ctx.body = { ctx.body = {
code: 200, code: 200,
message: '上传成功', message: '上传成功',