Commit 3bda742c authored by yaobeibei's avatar yaobeibei

oem

parent f3b2a1dc
......@@ -6,15 +6,15 @@ const moment = require('moment')
var db = {}
var reg = /@test.com$|@123.com$|@goyoo.com$|@xiaoyun.com$|^@|^test|@dis.com$|time-stone.cn$|^tangyong|^875652541|@1.com$|@xioayun.com$/i
var dbpath = ''
var dbpath_oem = null
if (process.env.MONGO) {
dbpath = process.env.MONGO || 'mongodb://10.11.3.123:1301/remarketing'
dbpath_oem = 'mongodb://bjwjh-admin:c9yJ2gBFkp7U6@mongo-bjwjh-rs-1.localhost:1302,mongo-bjwjh-rs-2.localhost:1302,mongo-bjwjh-rs-3.localhost:1302/oem_maitian_remarketingAgent?replicaSet=bjwjh-rs&authSource=admin'
} else {
dbpath = 'mongodb://localhost:27017/remarketing'
dbpath_oem = 'mongodb://localhost:27017/remarketing2'
}
mongoClient.connect(dbpath, function (err, res) {
if (err) return console.log(err)
db = res.db('remarketing')
......
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