上传装备 一件多穿的bug
This commit is contained in:
parent
ae13a7f85c
commit
9d3294f068
@ -41,6 +41,11 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
|||||||
code = pb.ErrorCode_EquipmentOnFoundEquipment
|
code = pb.ErrorCode_EquipmentOnFoundEquipment
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if equipments[i].HeroId != "" { //装备已经有宿主了
|
||||||
|
code = pb.ErrorCode_ReqParameterError
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
if confs[i], err = this.module.configure.GetEquipmentConfigureById(equipments[i].CId); err != nil {
|
if confs[i], err = this.module.configure.GetEquipmentConfigureById(equipments[i].CId); err != nil {
|
||||||
log.Errorf("Equip_Check err:%v", err)
|
log.Errorf("Equip_Check err:%v", err)
|
||||||
code = pb.ErrorCode_EquipmentOnFoundEquipment
|
code = pb.ErrorCode_EquipmentOnFoundEquipment
|
||||||
|
Loading…
Reference in New Issue
Block a user