From bb95120cfe85bfe380b4cf3ffafceb118ffe4c24 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Wed, 24 May 2023 20:55:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E4=BB=BB=E5=8A=A1=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/equipment/api_equip.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/equipment/api_equip.go b/modules/equipment/api_equip.go index 0b8e4909d..95b11e0e8 100644 --- a/modules/equipment/api_equip.go +++ b/modules/equipment/api_equip.go @@ -170,11 +170,11 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq) tasks = append(tasks, comm.GettaskParam(comm.Rtype5, equipNum, utils.ToInt32(hero.HeroID))) // this.module.ModuleRtask.SendToRtask(session, comm.Rtype5, utils.ToInt32(hero.HeroID), equipNum) for k, v := range equipStr { - tasks = append(tasks, comm.GettaskParam(comm.Rtype41, 1, utils.ToInt32(hero.HeroID), v, k)) + tasks = append(tasks, comm.GettaskParam(comm.Rtype41, 1, v, k)) // this.module.ModuleRtask.SendToRtask(session, comm.Rtype41, utils.ToInt32(hero.HeroID), v, k) } for k, v := range equipLv { - tasks = append(tasks, comm.GettaskParam(comm.Rtype42, 1, utils.ToInt32(hero.HeroID), v, k)) + tasks = append(tasks, comm.GettaskParam(comm.Rtype42, 1, v, k)) // this.module.ModuleRtask.SendToRtask(session, comm.Rtype42, utils.ToInt32(hero.HeroID), v, k) } if hero.SuiteId != 0 {