Merge branch 'dev' of http://git.legu.cc/liwei_3d/go_dreamfactory into dev
This commit is contained in:
commit
233f9f4367
@ -14,6 +14,7 @@ func (this *apiComp) EquipCheck(session comm.IUserSession, req *pb.EquipmentEqui
|
||||
if len(req.EquipmentId) != 6 || req.HeroCardId == "" {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
}
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
@ -92,7 +93,7 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
||||
for i, v := range equipments { //校验装备位置
|
||||
if v != nil {
|
||||
if i+1 != int(confs[i].Pos) {
|
||||
log.Errorf("Equip conf:%v Target:%d Incorrect range!", confs[i], i)
|
||||
log.Errorf("Equip conf:%+v Target:%d Incorrect range!", confs[i], i)
|
||||
code = pb.ErrorCode_SystemError
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user