后台:账号管理

This commit is contained in:
luying
2021-11-29 16:19:47 +08:00
parent cc819c48a7
commit e7566b8af5
7 changed files with 63 additions and 67 deletions
+1 -3
View File
@@ -210,9 +210,7 @@ export default class Game extends Service {
const total = await NoticeModel.countByCondition( form )
return ctx.service.utils.resResult(STATUS.SUCCESS, {
list: list.map(cur => {
let env = this.app.config.env;
if(env == 'local') env = 'development';
return { ...cur, showEndTime: cur.showEndTime.getTime(), showStartTime: cur.showStartTime.getTime(), env}
return { ...cur, showEndTime: cur.showEndTime.getTime(), showStartTime: cur.showStartTime.getTime(), env: this.app.config.realEnv }
}), total
});
}