配置:后台数据库配置

This commit is contained in:
luying
2021-07-13 10:17:12 +08:00
parent 16b0b97a29
commit 4ef5fff4cf
3 changed files with 3 additions and 3 deletions

View File

@@ -199,7 +199,7 @@ export default class Game extends Service {
const total = await MarqueeModel.countByCondition( form )
return ctx.service.utils.resResult(STATUS.SUCCESS, {
list: list.map(cur => {
return { ...cur, startTime: cur.startTime.getTime(), endTime: cur.endTime.getTime() }
return { ...cur, startTime: cur.startTime?.getTime()||0, endTime: cur.endTime?.getTime()||0 }
}), total
});
}

View File

@@ -21,7 +21,7 @@ export default (appInfo: EggAppInfo) => {
};
config.mongoose = {
url: 'mongodb://root:zyzDev2021@dds-8vb5c74ba4263da41.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb5c74ba4263da42.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-506991391', // 内网
url: 'mongodb://dbop:zyzDev2021@dds-8vb5c74ba4263da41.mongodb.zhangbei.rds.aliyuncs.com:3717,dds-8vb5c74ba4263da42.mongodb.zhangbei.rds.aliyuncs.com:3717/zyz?replicaSet=mgset-506991391', // 内网
options: { useNewUrlParser: true, useUnifiedTopology: true },
};

View File

@@ -142,7 +142,7 @@ function showError(content) {
function queryEntry(param, callback) {
var route = 'gate.gateHandler.queryEntry';
pomelo.init({
host: '127.0.0.1',
host: location.hostname,
port: 3014,
log: true
}, function () {