Commit f4b3613b by lixinming

no message

parent 4b119b4c
...@@ -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];
......
...@@ -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:{
......
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