军团:获得申请时间
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user