From 2609177092c20851497e78f0f8b979bc56be3727 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 2 Sep 2021 21:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BB=E6=88=90=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=90=88=E6=88=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shared/pubUtils/roleUtil.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shared/pubUtils/roleUtil.ts b/shared/pubUtils/roleUtil.ts index 4e2b3d212..b1a3a9155 100644 --- a/shared/pubUtils/roleUtil.ts +++ b/shared/pubUtils/roleUtil.ts @@ -131,7 +131,7 @@ export class UpdateHeroes { // 更新军团信息 if(this.guild) { let r = new Rank(REDIS_KEY.GUILD_INFO, { code: this.guild.code }); - await r.generParamAndSet(REDIS_KEY.GUILD_INFO, { roleId }, { role }); + await r.generParamAndSet(REDIS_KEY.GUILD_INFO, { roleId }, { guild: this.guild }); } // 武将数量 if(this.incHeroNum > 0) { @@ -276,6 +276,6 @@ export class CreateHeroes extends UpdateHeroes { } public getResultHeroes() { - return this.resultHeroes.map(cur => { return {...cur, ce: reduceCe(cur.ce)}}); + return this.resultHeroes.map(cur => { cur.ce = reduceCe(cur.ce); return cur}); } } \ No newline at end of file