From 24838cf6d5565781abee89bf7fe86a0160ac71e4 Mon Sep 17 00:00:00 2001 From: luying Date: Fri, 17 Sep 2021 16:29:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9B=E5=9B=A2=EF=BC=9A=E8=8E=B7=E5=BE=97?= =?UTF-8?q?=E7=94=B3=E8=AF=B7=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/guild/handler/guildHandler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game-server/app/servers/guild/handler/guildHandler.ts b/game-server/app/servers/guild/handler/guildHandler.ts index 129f352aa..733d4b14d 100644 --- a/game-server/app/servers/guild/handler/guildHandler.ts +++ b/game-server/app/servers/guild/handler/guildHandler.ts @@ -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 = 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 });