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 {