Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yuyiDataServer
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
yuyiDataServer
Commits
f4b3613b
Commit
f4b3613b
authored
Nov 27, 2024
by
lixinming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
4b119b4c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
serverConfig.ts
src/config/serverConfig.ts
+2
-7
systemClass.ts
src/config/systemClass.ts
+0
-1
No files found.
src/config/serverConfig.ts
View file @
f4b3613b
...
@@ -14,16 +14,11 @@ export async function initConfig() {
...
@@ -14,16 +14,11 @@ export async function initConfig() {
if
(
!
configInfo
||
!
configInfo
.
config
)
throw
new
BizError
(
'xml中无配置'
);
if
(
!
configInfo
||
!
configInfo
.
config
)
throw
new
BizError
(
'xml中无配置'
);
else
{
else
{
let
{
port
,
mongodb
,
sign
,
mysqldb
}
=
configInfo
.
config
;
let
{
port
,
sign
,
mysqldb
}
=
configInfo
.
config
;
systemConfig
.
port
=
parseInt
(
port
[
0
]);
systemConfig
.
port
=
parseInt
(
port
[
0
]);
systemConfig
.
sign
=
sign
[
0
];
systemConfig
.
sign
=
sign
[
0
];
const
MongoPath
=
mongodb
[
0
].
path
[
0
];
const
MongoPort
=
mongodb
[
0
].
port
[
0
];
const
MongoW
=
mongodb
[
0
].
w
[
0
];
const
MongoDataBase
=
mongodb
[
0
].
dataBase
[
0
];
const
MongoWtimeoutMS
=
mongodb
[
0
].
wtimeoutMS
[
0
];
systemConfig
.
mongodbStr
=
analysisMongoConnectStr
(
MongoPath
,
MongoPort
,
MongoDataBase
,
MongoW
,
MongoWtimeoutMS
);
if
(
mysqldb
)
{
if
(
mysqldb
)
{
let
dbConfigInfo
=
mysqldb
[
0
];
let
dbConfigInfo
=
mysqldb
[
0
];
...
...
src/config/systemClass.ts
View file @
f4b3613b
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
export
class
ServerConfig
{
export
class
ServerConfig
{
/**系统配置 */
/**系统配置 */
port
:
number
;
port
:
number
;
mongodbStr
:
string
;
sign
:
string
;
sign
:
string
;
mysqldb
:{
mysqldb
:{
...
...
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