Commit 67a624f7 by 庄冰

ip

parent fe25bd28
const mongoose = require('mongoose')
class MgDbFactory {
constructor() {
const reqUrl = "mongodb://wdy1:123456@43.247.184.94:27017/phones";
const reqUrl = "mongodb://wdy1:123456@er.es.gongsibao.com:27017/phones";
this.mgdb = mongoose.connect(reqUrl, { useNewUrlParser: true });
}
......
......@@ -23,9 +23,9 @@ var settings = {
//记录日志地址
opNewLogUrl() {
if (this.env == 'dev') {
return "http://43.247.184.94:7200/igirl_channel_req_log/_doc?pretty";
return "http://er.es.gongsibao.com:7200/igirl_channel_req_log/_doc?pretty";
}
return "http://43.247.184.94:7200/igirl_channel_req_log/_doc?pretty";
return "http://er.es.gongsibao.com:7200/igirl_channel_req_log/_doc?pretty";
},
paasUrl: function () {
if (this.env == "dev") {
......@@ -58,9 +58,9 @@ var settings = {
reqEsAddr: function () {
if (this.env == "dev") {
var localsettings = require("./localsettings");
return "http://43.247.184.94:7200/";//localsettings.reqEsDevUrl;
return "http://er.es.gongsibao.com:7200/";//localsettings.reqEsDevUrl;
} else {
return "http://43.247.184.94:7200/";
return "http://er.es.gongsibao.com:7200/";
}
},
reqZcApi: function () {
......
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