Commit d50a5f58 authored by yaobeibei's avatar yaobeibei

oem

parent 3bda742c
...@@ -13,14 +13,11 @@ if (process.env.MONGO) { ...@@ -13,14 +13,11 @@ if (process.env.MONGO) {
} else { } else {
dbpath_oem = 'mongodb://localhost:27017/remarketing2' dbpath_oem = 'mongodb://localhost:27017/remarketing2'
} }
}
mongoClient.connect(dbpath_oem, function (err, res) {
mongoClient.connect(dbpath, function (err, res) {
if (err) return console.log(err) if (err) return console.log(err)
db = res.db('remarketing') db = res.db('remarketing')
db.collection('msgTemps').find({}).toArray((err, r) => {
console.log('数据库已经连接')
})
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment