Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
67a624f7
Commit
67a624f7
authored
May 24, 2021
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip
parent
fe25bd28
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
igirl-channel/app/base/db/impl/common/mgconnection.js
+1
-1
igirl-channel/app/config/settings.js
+4
-4
No files found.
igirl-channel/app/base/db/impl/common/mgconnection.js
View file @
67a624f7
const
mongoose
=
require
(
'mongoose'
)
const
mongoose
=
require
(
'mongoose'
)
class
MgDbFactory
{
class
MgDbFactory
{
constructor
()
{
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
});
this
.
mgdb
=
mongoose
.
connect
(
reqUrl
,
{
useNewUrlParser
:
true
});
}
}
...
...
igirl-channel/app/config/settings.js
View file @
67a624f7
...
@@ -23,9 +23,9 @@ var settings = {
...
@@ -23,9 +23,9 @@ var settings = {
//记录日志地址
//记录日志地址
opNewLogUrl
()
{
opNewLogUrl
()
{
if
(
this
.
env
==
'dev'
)
{
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
()
{
paasUrl
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
...
@@ -58,9 +58,9 @@ var settings = {
...
@@ -58,9 +58,9 @@ var settings = {
reqEsAddr
:
function
()
{
reqEsAddr
:
function
()
{
if
(
this
.
env
==
"dev"
)
{
if
(
this
.
env
==
"dev"
)
{
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
return
"http://
43.247.184.94
:7200/"
;
//localsettings.reqEsDevUrl;
return
"http://
er.es.gongsibao.com
:7200/"
;
//localsettings.reqEsDevUrl;
}
else
{
}
else
{
return
"http://
43.247.184.94
:7200/"
;
return
"http://
er.es.gongsibao.com
:7200/"
;
}
}
},
},
reqZcApi
:
function
()
{
reqZcApi
:
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment