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
1671912f
Commit
1671912f
authored
May 24, 2021
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
f92d309c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
embed_applications/app/base/db/impl/tmquery/mgconnection.js
+1
-1
embed_applications/app/config/settings.js
+1
-1
No files found.
embed_applications/app/base/db/impl/tmquery/mgconnection.js
View file @
1671912f
const
mongoose
=
require
(
'mongoose'
)
const
mongoose
=
require
(
'mongoose'
)
class
MgDbFactory
{
class
MgDbFactory
{
constructor
()
{
constructor
()
{
const
reqUrl
=
"mongodb://wdy1:123456@
er.es.gongsibao.com:27017
/phones"
;
const
reqUrl
=
"mongodb://wdy1:123456@
idc157.gongsibao.com:13311
/phones"
;
this
.
mgdb
=
mongoose
.
connect
(
reqUrl
,
{
useNewUrlParser
:
true
});
this
.
mgdb
=
mongoose
.
connect
(
reqUrl
,
{
useNewUrlParser
:
true
});
}
}
...
...
embed_applications/app/config/settings.js
View file @
1671912f
...
@@ -265,7 +265,7 @@ var settings = {
...
@@ -265,7 +265,7 @@ var settings = {
var
localsettings
=
require
(
"./localsettings"
);
var
localsettings
=
require
(
"./localsettings"
);
return
localsettings
.
reqMgDevUrl
;
return
localsettings
.
reqMgDevUrl
;
}
else
{
}
else
{
return
"mongodb://wdy1:123456@er.es.gongsibao.com:27017
/"
;
return
"mongodb://wdy1:123456@idc157.gongsibao.com:13311
/"
;
}
}
},
},
redis
:
function
(){
redis
:
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