配置:后台数据库配置

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
+1 -1
View File
@@ -199,7 +199,7 @@ export default class Game extends Service {
const total = await MarqueeModel.countByCondition( form ) const total = await MarqueeModel.countByCondition( form )
return ctx.service.utils.resResult(STATUS.SUCCESS, { return ctx.service.utils.resResult(STATUS.SUCCESS, {
list: list.map(cur => { 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 }), total
}); });
} }
+1 -1
View File
@@ -21,7 +21,7 @@ export default (appInfo: EggAppInfo) => {
}; };
config.mongoose = { 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 }, options: { useNewUrlParser: true, useUnifiedTopology: true },
}; };
+1 -1
View File
@@ -142,7 +142,7 @@ function showError(content) {
function queryEntry(param, callback) { function queryEntry(param, callback) {
var route = 'gate.gateHandler.queryEntry'; var route = 'gate.gateHandler.queryEntry';
pomelo.init({ pomelo.init({
host: '127.0.0.1', host: location.hostname,
port: 3014, port: 3014,
log: true log: true
}, function () { }, function () {