From 89987aeea13676e5d3a48ae482e76e8cc9e8bbd5 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 19 Dec 2023 11:22:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E5=9B=9Eoms?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 4 ++-- src/config/db.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 820b608..7101627 100644 --- a/index.js +++ b/index.js @@ -14,9 +14,9 @@ chalk.level = 1 app.listen(port, () => { db.init() app.use(express.json()) // for parsing application/json - app.use(xmlparser()); + app.use(xmlparser()); // for parsing application/xml app.use(express.urlencoded({extended: true, limit: '50mb'})) // for parsing application/x-www-form-urlencoded - + //启动服务并监听 Promise.all([rest.init(app)]).then(() => { log(`${chalk.bgGreen.black(" DONE ")} serve is listening on ${port}`) ws.init(app) diff --git a/src/config/db.js b/src/config/db.js index 241d016..df8a305 100644 --- a/src/config/db.js +++ b/src/config/db.js @@ -3,6 +3,6 @@ module.exports = { user: "root", port: 3306, password: "Cwy@2019", - database: "dvcp_v2_dev", + database: "dvcp_oms_dev", multipleStatements: true }