军团:获得申请时间

This commit is contained in:
luying
2021-09-17 16:29:38 +08:00
parent 8688ab1788
commit 24838cf6d5

View File

@@ -8,7 +8,7 @@ import { RoleModel, RoleType } from '../../../db/Role';
import { ARMY } from '../../../pubUtils/dicParam';
import { handleCost, addItems } from '../../../services/rewardService';
import { getGoldObject } from '../../../pubUtils/itemUtils';
import { nowSeconds, getTimeFun } from '../../../pubUtils/timeUtil';
import { nowSeconds, getTimeFun, getSeconds } from '../../../pubUtils/timeUtil';
import { GuildListInfo } from '../../../domain/battleField/guild';
import { GuildLeader } from '../../../domain/rank';
import { UserGuildApplyModel } from '../../../db/UserGuildApply';
@@ -332,7 +332,7 @@ export class GuildHandler {
let role = <RoleType>cur.role;
delete cur.role;
let isOnline = await isRoleOnline(role.roleId);
list.push({ applyCode: cur.applyCode, ...role, isOnline });
list.push({ applyCode: cur.applyCode, ...role, isOnline, createTime: getSeconds(cur.createdAt) });
}
return resResult(STATUS.SUCCESS, { list });